Issue
Wallet rescan progress indicator in debug.log is not intuitive. For example, 0.953423 doesn't mean 95% done. This isn't a big issue for me, but I want to report it because it may save the next person some time (unnecessary wait).
Steps to reproduce:
- Import privkey with rescan
- Tail the log
Expected behavior
I would expect that Progress=0.980699 means I'm 98% done.
Actual behavior
On testnet (obviously) I'm 0.98 complete (is that 98% complete?) rescanning block 576517, whereas currently height=1032846 or so.
2016-11-11 20:50:02 Still rescanning. At block 576517. Progress=0.980699
It's not done yet (2+ hours now), but I hope progress won't end up being greater than 1, because that would be even more confusing.
What version of bitcoin-core are you using?
0.12.1 with addrindex patch (source)
Machine specs:
- OS: Ubuntu 16.04
- CPU: ARMv8
- RAM: 1GB
- Disk Type (HD/SDD): SSD
Any extra information that might be useful in the debugging process.
Here's couple of sections from my debug.log. At block 53K it's already 0.17 done (wonderful) so instead of killing the daemon and retrying with no rescan, I decide to wait. Encouraged by the fast progress I keep waiting... and waiting. If I knew 0.17 doesn't really mean "17% done" I would have saved myself few hours of wait.
2016-11-11 19:24:49 Still rescanning. At block 53404. Progress=0.172387
2016-11-11 19:25:49 Still rescanning. At block 67174. Progress=0.276670
2016-11-11 19:26:49 Still rescanning. At block 79253. Progress=0.382439
...
2016-11-11 19:38:49 Still rescanning. At block 205610. Progress=0.813022
2016-11-11 19:39:49 Still rescanning. At block 205669. Progress=0.813941
...
2016-11-11 21:00:05 Still rescanning. At block 600560. Progress=0.983855
2016-11-11 21:01:05 Still rescanning. At block 600772. Progress=0.983972
...
2016-11-11 21:22:11 Still rescanning. At block 608068. Progress=0.986720
2016-11-11 21:23:11 Still rescanning. At block 608287. Progress=0.986824
...
2016-11-11 21:55:11 Still rescanning. At block 632290. Progress=0.989739
2016-11-11 21:56:11 Still rescanning. At block 632447. Progress=0.989824
2016-11-11 21:57:11 Still rescanning. At block 632818. Progress=0.989920