Bitcoin Forum
June 14, 2024, 10:32:15 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [Solved] Cancel a QT transaction sent while offline before going back online  (Read 1208 times)
Kouye (OP)
Sr. Member
****
Offline Offline

Activity: 336
Merit: 250


Cuddling, censored, unicorn-shaped troll.


View Profile
June 09, 2013, 02:34:45 AM
Last edit: June 25, 2013, 05:50:39 PM by Kouye
 #1

My fiber provider has been having issues lately, so I'm temporarily using a wi-fi hotspot to connect.
Problem is, this hotspot does not allow peer-to-peer.
Second problem is I sent a payment before realizing it, using Bitcoin-QT, which has not been processed yet, since my main connection is still down.
And of course, the thing I payed for is long gone.

I have a pending "offline" payment which I want to cancel, since the seller didn't receive any confirmation, obviously, and dealed with someone else.

If I restore a wallet backup prior to this payment, is it going to be cancelled?
Is there any other way I can cancel it?

Cheers.

EDIT : changed title.

[OVER] RIDDLES 2nd edition --- this was claimed. Look out for 3rd edition!
I won't ever ask for a loan nor offer any escrow service. If I do, please consider my account as hacked.
Abdussamad
Legendary
*
Offline Offline

Activity: 3626
Merit: 1568



View Profile
June 09, 2013, 05:12:19 PM
 #2

Post the transaction hash. If the payment has been confirmed you can't get the coins back. If not you can try a double spend.
Kouye (OP)
Sr. Member
****
Offline Offline

Activity: 336
Merit: 250


Cuddling, censored, unicorn-shaped troll.


View Profile
June 09, 2013, 06:45:31 PM
 #3

It has not been confirmed for sure, it not even made it to the network, the peer-to-peer ports are blocked.
It's been acknowledged by the bitcoin-qt client, but is greyed out, with 0 confirmation.

Not really willing to try to double-spend it, more to cancel it, to avoid having to ask the recipient for a refund once I get back online and the payment makes it to the network.

[OVER] RIDDLES 2nd edition --- this was claimed. Look out for 3rd edition!
I won't ever ask for a loan nor offer any escrow service. If I do, please consider my account as hacked.
Abdussamad
Legendary
*
Offline Offline

Activity: 3626
Merit: 1568



View Profile
June 09, 2013, 06:49:13 PM
 #4

What happens when you restart bitcoin-qt? Does it continue to try to send the transaction? If it does then the question is where is transaction data stored? If it is stored in the wallet then you will extract all private keys using pywallet and then recreate it.
grue
Legendary
*
Offline Offline

Activity: 2058
Merit: 1431



View Profile
June 09, 2013, 07:02:14 PM
 #5

What happens when you restart bitcoin-qt? Does it continue to try to send the transaction? If it does then the question is where is transaction data stored? If it is stored in the wallet then you will extract all private keys using pywallet and then recreate it.
you're trying to help, yet you don't know how bitcoin works.

The satoshi client will attempt to rebroadcast unconfirmed transactions at random intervals (30 minute on average, AFAIK). You can "cancel" the transaction by using pywallet and deleting the transaction from your wallet. That way, your transaction will essentially be "canceled".

It is pitch black. You are likely to be eaten by a grue.

Adblock for annoying signature ads | Enhanced Merit UI
Kouye (OP)
Sr. Member
****
Offline Offline

Activity: 336
Merit: 250


Cuddling, censored, unicorn-shaped troll.


View Profile
June 09, 2013, 07:34:01 PM
 #6

The satoshi client will attempt to rebroadcast unconfirmed transactions at random intervals (30 minute on average, AFAIK). You can "cancel" the transaction by using pywallet and deleting the transaction from your wallet. That way, your transaction will essentially be "canceled".

Thank you, I was able to delete the Tx from my wallet using pywallet, hopefully it will work whenever my cable connection gets revived.
I won't know for sure before next wednesday as I'm on a business trip until then, but I'll be sure to tip you if it actually worked!

[OVER] RIDDLES 2nd edition --- this was claimed. Look out for 3rd edition!
I won't ever ask for a loan nor offer any escrow service. If I do, please consider my account as hacked.
rimbit
Sr. Member
****
Offline Offline

Activity: 353
Merit: 250


Rimbit - No mining, just development


View Profile WWW
June 10, 2013, 09:08:31 AM
 #7

What happens when you restart bitcoin-qt? Does it continue to try to send the transaction? If it does then the question is where is transaction data stored? If it is stored in the wallet then you will extract all private keys using pywallet and then recreate it.
you're trying to help, yet you don't know how bitcoin works.

The satoshi client will attempt to rebroadcast unconfirmed transactions at random intervals (30 minute on average, AFAIK). You can "cancel" the transaction by using pywallet and deleting the transaction from your wallet. That way, your transaction will essentially be "canceled".

Thanks.. Good info!

[ANN] Rimbit --- We removed mining so its just the community and coin --- Click Here
Kouye (OP)
Sr. Member
****
Offline Offline

Activity: 336
Merit: 250


Cuddling, censored, unicorn-shaped troll.


View Profile
June 25, 2013, 11:18:24 AM
 #8

Been away for a while, getting back on this issue.

So I successfully deleted the TX using pywallet, while offline.
The transaction didn't make it to the network for sure:

Id : a3abcd702749b0361c951a8285a82fd77414a06edca2da8e68892c624e428e5b

It does not appear in the blockchain, even though my client has been running for 15 hours now.

Problem is, my QT balance is still wrong, and still takes into account this offline, then deleted transaction.
I tried redownloading the whole chain, then tried a reindex and a rescan to no avail.

So basically I have 0,25BTC that were eaten by QT client.

Last hope might be to figure out what address QT used to send the coins, dump the private key and reimport in on the blockchain wallet, but how can I get the address QT used ?
I have the full pywallet transaction dump, but I can't see any address in it.

Thanks for your time!



[OVER] RIDDLES 2nd edition --- this was claimed. Look out for 3rd edition!
I won't ever ask for a loan nor offer any escrow service. If I do, please consider my account as hacked.
Cyberdyne
Hero Member
*****
Offline Offline

Activity: 630
Merit: 500



View Profile
June 25, 2013, 11:51:46 AM
 #9

Been away for a while, getting back on this issue.

So I successfully deleted the TX using pywallet, while offline.
The transaction didn't make it to the network for sure:

Id : a3abcd702749b0361c951a8285a82fd77414a06edca2da8e68892c624e428e5b

It does not appear in the blockchain, even though my client has been running for 15 hours now.

Problem is, my QT balance is still wrong, and still takes into account this offline, then deleted transaction.
I tried redownloading the whole chain, then tried a reindex and a rescan to no avail.

So basically I have 0,25BTC that were eaten by QT client.

Last hope might be to figure out what address QT used to send the coins, dump the private key and reimport in on the blockchain wallet, but how can I get the address QT used ?
I have the full pywallet transaction dump, but I can't see any address in it.

Thanks for your time!




Forget about a 'transaction dump'... do what Abdussamad says and dump all the KEYS from your wallet.

Then from this you can create a new wallet with all your private keys, which will be forced to rebuild any transaction info from scratch.

Of course, pywallet doesn't have any bulk import feature as far as I know, so this could take a lot of time.
Kouye (OP)
Sr. Member
****
Offline Offline

Activity: 336
Merit: 250


Cuddling, censored, unicorn-shaped troll.


View Profile
June 25, 2013, 05:32:15 PM
 #10

Using pywallet, I was able to bulk export all my keys (I had over 200, so I wasn't going to do this manually for BTC 0.25)
Then I croped the Tx from the generated file, just in case (I know it is not necessary), and reimported the file content in a blockchain account.

Balance was right on blockchain after the import was successful, so I just sent all the coins to a new address on my QT wallet, and got it all back (apart from the Tx fees, but that's ok).

Now I guess I just need to delete all the private keys from the blockchain account, if I'm unconfortable with those being somewhere on the net.

I still think there should be an option in QT to recompute the balance of all addresses, and then recompute the total balance, without going through all this hassle.

Thanks to all who helped!
Abdussamad and Cyberdyne, PM me a BTC address where I can send a small tip!

[OVER] RIDDLES 2nd edition --- this was claimed. Look out for 3rd edition!
I won't ever ask for a loan nor offer any escrow service. If I do, please consider my account as hacked.
jackjack
Legendary
*
Offline Offline

Activity: 1176
Merit: 1255


May Bitcoin be touched by his Noodly Appendage


View Profile
June 25, 2013, 06:04:11 PM
 #11

Of course, pywallet doesn't have any bulk import feature as far as I know, so this could take a lot of time.
What do you mean "bulk import"?
Importing from a file full of private keys?


Problem is, my QT balance is still wrong, and still takes into account this offline, then deleted transaction.
I know your problem is now solved, but for future reference, did you try to "bitcoin-qt -rescan" ?

Own address: 19QkqAza7BHFTuoz9N8UQkryP4E9jHo4N3 - Pywallet support: 1AQDfx22pKGgXnUZFL1e4UKos3QqvRzNh5 - Bitcointalk++ script support: 1Pxeccscj1ygseTdSV1qUqQCanp2B2NMM2
Pywallet: instructions. Encrypted wallet support, export/import keys/addresses, backup wallets, export/import CSV data from/into wallet, merge wallets, delete/import addresses and transactions, recover altcoins sent to bitcoin addresses, sign/verify messages and files with Bitcoin addresses, recover deleted wallets, etc.
Kouye (OP)
Sr. Member
****
Offline Offline

Activity: 336
Merit: 250


Cuddling, censored, unicorn-shaped troll.


View Profile
June 25, 2013, 06:18:29 PM
 #12

I know your problem is now solved, but for future reference, did you try to "bitcoin-qt -rescan" ?

I tried redownloading the whole chain, then tried a reindex and a rescan to no avail.

 Wink

[OVER] RIDDLES 2nd edition --- this was claimed. Look out for 3rd edition!
I won't ever ask for a loan nor offer any escrow service. If I do, please consider my account as hacked.
jackjack
Legendary
*
Offline Offline

Activity: 1176
Merit: 1255


May Bitcoin be touched by his Noodly Appendage


View Profile
June 25, 2013, 08:16:11 PM
 #13

I know your problem is now solved, but for future reference, did you try to "bitcoin-qt -rescan" ?

I tried redownloading the whole chain, then tried a reindex and a rescan to no avail.

 Wink

Wow... How can my brain ignore the line just after the one I quoted? That's scary

Own address: 19QkqAza7BHFTuoz9N8UQkryP4E9jHo4N3 - Pywallet support: 1AQDfx22pKGgXnUZFL1e4UKos3QqvRzNh5 - Bitcointalk++ script support: 1Pxeccscj1ygseTdSV1qUqQCanp2B2NMM2
Pywallet: instructions. Encrypted wallet support, export/import keys/addresses, backup wallets, export/import CSV data from/into wallet, merge wallets, delete/import addresses and transactions, recover altcoins sent to bitcoin addresses, sign/verify messages and files with Bitcoin addresses, recover deleted wallets, etc.
DiamondCardz
Legendary
*
Offline Offline

Activity: 1134
Merit: 1112



View Profile WWW
June 25, 2013, 08:35:47 PM
 #14

I know your problem is now solved, but for future reference, did you try to "bitcoin-qt -rescan" ?

I tried redownloading the whole chain, then tried a reindex and a rescan to no avail.

 Wink

Wow... How can my brain ignore the line just after the one I quoted? That's scary
* DiamondCardz gasps

Very scary indeed. I think you might have some problems with inattentiveness, jackjack  Wink

BA Computer Science, University of Oxford
Dissertation was about threat modelling on distributed ledgers.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!