Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: Walking Glitch on February 04, 2014, 12:49:11 AM



Title: Manualy Editing Transactions
Post by: Walking Glitch on February 04, 2014, 12:49:11 AM
Before I start, this is not on the bitcoin mainnet.

Using a modified client, I sent a tx that will never confirm (under any circumstances), however, the wallet is convinced that I no longer own those coins. How do I go about editing that transaction out of the wallet.dat? I've been searching for hours to no avail. The closest thing I came to were some Oracle db utilities, but all I could find was the documentation, no download of any sort in sight.

This is rather important. I'll pay whoever is able to provide me with a solution 1 LTC or equivalent BTC value.


Title: Re: Manualy Editing Transactions
Post by: GoldenWings91 on February 04, 2014, 01:03:29 AM
If the transactions was never confirmed than the money never moved. To make the money show up in your wallet just restart your client with the -rescan option.


Title: Re: Manualy Editing Transactions
Post by: Walking Glitch on February 04, 2014, 01:07:16 AM
If the transactions was never confirmed than the money never moved. To make the money show up in your wallet just restart your client with the -rescan option.

I've tried this and --reindex, and neither worked.


Title: Re: Manualy Editing Transactions
Post by: mrbubl3s on February 04, 2014, 01:24:16 AM
Bump. This is relevant to my interests.


Title: Re: Manualy Editing Transactions
Post by: Walking Glitch on February 04, 2014, 06:08:48 PM
Bump.


Title: Re: Manualy Editing Transactions
Post by: Quiksilver on February 04, 2014, 07:02:18 PM
One small step to BTC's demise.
Bump for interest.


Title: Re: Manualy Editing Transactions
Post by: mrbubl3s on February 04, 2014, 10:11:32 PM
+ .5ltc to a solution that works..


Title: Re: Manualy Editing Transactions
Post by: Automatic on February 04, 2014, 10:31:43 PM
is this on the testnet? Or a private net?

I can possibly think of a way if it's the testnet (or mainnet, never tested, just a theory), but if it's private not a clue.

My idea is just to go to a site like blockexplorer, grab the raw transaction, edit it, resign it, rebroadcast it.


Title: Re: Manualy Editing Transactions
Post by: Walking Glitch on February 05, 2014, 01:33:38 AM
is this on the testnet? Or a private net?

I can possibly think of a way if it's the testnet (or mainnet, never tested, just a theory), but if it's private not a clue.

My idea is just to go to a site like blockexplorer, grab the raw transaction, edit it, resign it, rebroadcast it.

It is a private-ish (I have the majority of the hashpower on it actually.) net, but the coin is a fork of BTC. I can set up a block explorer. This seems like it should work actually. I won't be able to do it tonight, but tomorrow I can probably set up the block explorer and try this. Thanks. If it works, I will pm you for a BTC/LTC address.


Title: Re: Manualy Editing Transactions
Post by: rtt on February 05, 2014, 02:06:55 AM
You would use pywallet, see here to delete a specific tx:
https://bitcointalk.org/index.php?topic=34028.msg2239679#msg2239679

pywallet.py --multidelete file.txt [--wallet wallet.dat] [--datadir /bitcoin/directory]

Your file.txt would contain the tx's, one per line or you could do:
tx
all

as contents of your file.



Title: Re: Manualy Editing Transactions
Post by: Walking Glitch on February 05, 2014, 02:39:00 AM
You would use pywallet, see here to delete a specific tx:
https://bitcointalk.org/index.php?topic=34028.msg2239679#msg2239679

pywallet.py --multidelete file.txt [--wallet wallet.dat] [--datadir /bitcoin/directory]

Your file.txt would contain the tx's, one per line or you could do:
tx
all

as contents of your file.



pywallet keeps complaining about me missing the twisted library even though I have verified that I have it installed properly.