Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rescan when importing mnemonic #662

Merged
merged 2 commits into from
Feb 20, 2020

Conversation

aguycalled
Copy link
Member

This PR fixes a bug which prevented a wallet to scan an already existing chain for old transactions when importing a mnemonic.

By default, the wallet will look for all the transactions from the Genesis block. This can be changed using importmnemonicfromtime=<timestamp> in order to save scanning time and to look for transactions in a concrete period.

### What to test

Importing a mnemonic from a wallet with transactions existing prior to the import time should show the complete transaction list and right balance.

@chasingkirkjufell
Copy link
Contributor

Tested on devnet and imported wallet still not showing past transactions.

Copy link
Contributor

@chasingkirkjufell chasingkirkjufell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested on Ubuntu 19.04 64GB RAM

  • Importing wallet and verify past tx appear correctly
  • Creating a new wallet with seed phrase
  • Client boots normally when a wallet.dat already exists

@navbuilder
Copy link

A new build of f0297ca has completed succesfully!
Binaries available at https://build.nav.community/binaries/rescan-after-mnemonic

@mxaddict
Copy link
Contributor

Tested on Windows 10

  • Importing wallet and verify past tx appear correctly
  • Creating a new wallet with seed phrase
  • Client boots normally when a wallet.dat already exists

@mxaddict mxaddict merged commit 4d78dbd into navcoin:master Feb 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants