Performing reindex and wallet rescans
See original GitHub issueThere are two options that are regularly recommended to solve issues those being starting up zcashd
with --rescan
(solves a lot of balance and missing transaction issues) and starting zcashd
with --reindex
(for those times when nothing else seems to work…)
In writing docs for this, it is hard to do this in practice when using zec-qt-wallet. For example, the Mac app doesn’t give access to the embedded zcashd
(or I can’t find it 😄).
Even on say Windows, for those users who want to use a GUI it is possibly a little daunting to have to run an external zcashd
this way, as well as complicated to explain.
That’s a long way of saying, can we get support for doing a rescan and/or reindex. In principle, I would imagine this could work for any zcash.conf
config option but those two are the most important. I’m thinking a simple(ish) workaround would be to have an option say “Perform a wallet rescan on startup” that when checked adds the line to zcash.conf
which only persists through a single startup as of course, you don’t want this running on every launch.
There might be better ways of implementing this and am open to any ideas!
Issue Analytics
- State:
- Created 5 years ago
- Comments:12 (7 by maintainers)
I tested the
rescan
functionality which is fairly quick.It works as described in the troubleshooting notes.
One thing that would be extremely helpful is to add a progress indicator (bar or text update). I would imagine this is fairly simple to do by polling the progress in
debug.log
Hey @garethtdavies , @rex4539 I just added a new section in the Settings page where users can do a rescan and/or reindex. Since I’ve seen you help a lot of people work through these problems, I’d love to get your feedback on whether this will work for people before I release it .
(Note that it’s not released yet, you’ll have to build from source to see it). Let me know if you need a binary, I can build one as well.