question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Performing reindex and wallet rescans

See original GitHub issue

There 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:closed
  • Created 5 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
rex4539commented, Mar 20, 2019

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

1reaction
adityapk00commented, Mar 19, 2019

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

rescan and -reindex command do when running a Dimecoin ...
The rescan command 'rescans' the local blockchain files and looks for missing transactions in the wallet. This can often occur if you are...
Read more >
Reindexing your Firo wallet - Privacy-preserving cryptocurrency
If you need to rescan your wallet, please run with -rescan instead. This can take between 5 to 30 minutes to run. Windows....
Read more >
Performance of importwallet - MultiChain Developer Q&A
The problem here is that importwallet rescans the complete blockchain. Rescanning all blocks seems to be quite slow and the multichain rpc ...
Read more >
ZecWallet balance is not syncronized - Zcash Community Forum
I have downloaded and installed ZecWallet for both windows and mac os. I have got really bad user ... Performing reindex and wallet...
Read more >
Rescan fails with old wallet - Bitcoin Forum
Rescan fails with old wallet. ... will work if noth are fully synced without having to reindex (backup both chains first though if...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found