Author

Topic: Please help, old wallet rescan is taking forever, CPU at 1% (Read 1326 times)

legendary
Activity: 4228
Merit: 1313
Glad it is working faster.  ;-)

newbie
Activity: 57
Merit: 0
...
could you copy the wallet to a hard disk or better internal flash drive?
...

Now it's working. Don't know why I wasn't thinking of this myself.

Thank you!

legendary
Activity: 4228
Merit: 1313
One thing to consider is that it could be a USB issue - could you copy the wallet to a hard disk or better internal flash drive?

If this is a slow USB device or older bus the process could be i/o bound which would be why CPU usage is so low.

It could be other things of course but this is a possibility.
newbie
Activity: 57
Merit: 0
Hello,

I am trying to access an old backup wallet and bitcoin-qt is stuck in rescan, it is taking forever.

I am using Ubuntu and bitcoin-core v0.9.2.1 with the blockchain and wallet on an usb hard-drive.

My debug.log:
Code:
2014-08-30 23:43:47 Bitcoin version v0.9.2.1-g354c0f3-beta (Thu, 19 Jun 2014 09:51:15 +0200)
2014-08-30 23:43:47 Using OpenSSL version OpenSSL 1.0.1f 6 Jan 2014
2014-08-30 23:43:47 Using BerkeleyDB version Berkeley DB 4.8.30: (April  9, 2010)
2014-08-30 23:43:47 Default data directory ---
2014-08-30 23:43:47 Using data directory ---
2014-08-30 23:43:47 Using at most 125 connections (1024 file descriptors available)
2014-08-30 23:43:47 Using 4 threads for script verification
2014-08-30 23:43:47 Using wallet wallet.dat
2014-08-30 23:43:47 init message: Verifiziere Wallet...
2014-08-30 23:43:47 CDBEnv::Open : LogDir=---/db.log
2014-08-30 23:43:48 Bound to [::]:8333
2014-08-30 23:43:48 Bound to 0.0.0.0:8333
2014-08-30 23:43:48 init message: Lade Blockindex...
2014-08-30 23:43:48 Opening LevelDB in ---/blocks/index
2014-08-30 23:43:48 Opened LevelDB successfully
2014-08-30 23:43:48 Opening LevelDB in ---/chainstate
2014-08-30 23:43:48 Opened LevelDB successfully
2014-08-30 23:43:52 LoadBlockIndexDB(): last block file = 170
2014-08-30 23:43:52 LoadBlockIndexDB(): last block file info: CBlockFileInfo(blocks=370, size=77590453, heights=317948...318316, time=2014-08-28...2014-08-30)
2014-08-30 23:43:52 LoadBlockIndexDB(): transaction index disabled
2014-08-30 23:43:52 LoadBlockIndexDB(): hashBestChain=00000000000000001e6122f1aa47bba9839510e5c0e4d18ebc35f3a7b138790a height=318316 date=2014-08-30 21:07:58 progress=0.999694
2014-08-30 23:43:52 init message: Verifiziere Blöcke...
2014-08-30 23:43:52 Verifying last 288 blocks at level 3
2014-08-30 23:44:38 No coin database inconsistencies in last 289 blocks (111184 transactions)
2014-08-30 23:44:39  block index           50987ms
2014-08-30 23:44:39 init message: Lade Wallet...
2014-08-30 23:44:40 nFileVersion = 90201
2014-08-30 23:44:40 Keys: 105 plaintext, 0 encrypted, 0 w/ metadata, 105 total
2014-08-30 23:44:40  wallet                  738ms
2014-08-30 23:44:40 init message: Durchsuche erneut...
2014-08-30 23:44:40 Rescanning last 318316 blocks (from block 0)...
2014-08-30 23:45:40 Still rescanning. At block 675. Progress=0.000007
2014-08-30 23:46:40 Still rescanning. At block 1288. Progress=0.000013
2014-08-30 23:47:40 Still rescanning. At block 1898. Progress=0.000019
2014-08-30 23:48:40 Still rescanning. At block 2503. Progress=0.000025
2014-08-30 23:49:40 Still rescanning. At block 3105. Progress=0.000031

I am confused because my CPU utilization is only at about 1% ...

I know that bitcoin-core does a rescan because of the old wallet but at this speed it will take forever. Is it rescanning all the blocks in the blockchain or just the last 318316 blocks?
Any ideas why this process is so slow (and my CPU only at 1%)?

Any help would be appreciated,
BC12345

Edit:
Ok, I just realized that 318316 blocks is almost the complete blockchain at this point.
Jump to: