Bitcoin Forum
April 25, 2024, 04:11:46 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [GUIDE] FIX ANY UNCONFIRMED TRANSACTION ERROR!  (Read 3061 times)
kookiekrak (OP)
Full Member
***
Offline Offline

Activity: 238
Merit: 100


View Profile
July 24, 2011, 09:14:50 PM
Last edit: July 27, 2011, 04:44:44 PM by kookiekrak
 #1

So a few days ago, my internet wasn't responding well and I sent a hefty chunk of btc to the same address twice. The first transaction went through, but the second died with 0/unconfirmed.

I thought this would be fine, and when my miner added more coins to it, I tried spending the new coins I made. Unfortunately, this new transaction decided to fail also and ended up with 0/unconfirmed.

How I fixed this error.


[WINDOWS]

FIRST BACKUP YOUR WALLET LOCATED AT  %appdata%/bitcoin/wallet.dat

1. Download berkeley db (http://www.oracle.com/technetwork/database/berkeleydb/downloads/index-082944.html) version 4.7.25
I used the MSI installer since its the simplest.

2. Once you install it, open a command prompt ( run -> cmd )
3. And CD to the bin folder of berkeley db ( cd C:\Program Files\Oracle\Berkeley DB 4.7.25\bin )
4. Next, use db_dump to dump your current wallet to a new text file ( db_dump  %appdata%/bitcoin/wallet.dat >wallet.txt )
5. Open the wallet.txt with a text editor, and delete all of the lines that start with

02747
01000

These are all of the transaction entries in the wallet. They come in pairs, so for every 02747 line you delete, delete the following line that start with 01000
These should also be the first chunk of lines after
VERSION=3
format=bytevalue
database=main
type=btree
db_pagesize=8192
HEADER=END

THIS STEP WILL OVERRIDE YOUR WALLET. PLEASE BACK IT UP FIRST
6. Next, reload the text file back into a wallet.dat ( db_load -f wallet.txt %appdata%/bitcoin/wallet.dat)
7. Finally, restart bitcoin with the -rescan option to recreate all of your transactions! (bitcoin.exe -rescan)

Now your wallet should be fixed! And your bitcoins will be spendable again!
If I've helped you fix your wallet, donations accepted at: 179vLLc6qjkofkWhH84cN6kFvcd2VaoGKr

FREE 100 GME if you post your Cryptsy TradeKey on the official GameCoinTalk forums

http://www.gamecointalk.org/index.php?topic=7.msg9#new
The grue lurks in the darkest places of the earth. Its favorite diet is adventurers, but its insatiable appetite is tempered by its fear of light. No grue has ever been seen by the light of day, and few have survived its fearsome jaws to tell the tale.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714018306
Hero Member
*
Offline Offline

Posts: 1714018306

View Profile Personal Message (Offline)

Ignore
1714018306
Reply with quote  #2

1714018306
Report to moderator
1714018306
Hero Member
*
Offline Offline

Posts: 1714018306

View Profile Personal Message (Offline)

Ignore
1714018306
Reply with quote  #2

1714018306
Report to moderator
1714018306
Hero Member
*
Offline Offline

Posts: 1714018306

View Profile Personal Message (Offline)

Ignore
1714018306
Reply with quote  #2

1714018306
Report to moderator
kookiekrak (OP)
Full Member
***
Offline Offline

Activity: 238
Merit: 100


View Profile
July 26, 2011, 09:53:10 PM
 #2

bump. imo its better than running a python script since this uses official stuff. but w/e

FREE 100 GME if you post your Cryptsy TradeKey on the official GameCoinTalk forums

http://www.gamecointalk.org/index.php?topic=7.msg9#new
kookiekrak (OP)
Full Member
***
Offline Offline

Activity: 238
Merit: 100


View Profile
August 05, 2011, 09:48:16 PM
 #3

bump

FREE 100 GME if you post your Cryptsy TradeKey on the official GameCoinTalk forums

http://www.gamecointalk.org/index.php?topic=7.msg9#new
proudhon
Legendary
*
Offline Offline

Activity: 2198
Merit: 1311



View Profile
August 05, 2011, 09:52:35 PM
 #4

Thanks for the info.  Hopefully I won't have this problem again, but if I do I'll give this a try.

Bitcoin Fact: the price of bitcoin will not be greater than $70k for more than 25 consecutive days at any point in the rest of recorded human history.
hank
Newbie
*
Offline Offline

Activity: 10
Merit: 0


View Profile
August 19, 2011, 10:15:17 AM
 #5

thank youuu
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!