HomePhabricator

Bugfix: if no bestblock record is present, do a -rescan
2aceeb01a9b0Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Bugfix: if no bestblock record is present, do a -rescan

It is possible to have a wallet.dat file without any bestblock
record at all (if created offline, for example), which - when
loaded into a client with a up-to-date chain - does no rescan and
shows no transactions.

Also make sure to write the current best block after a rescan, so
it isn't necessary twice.

Details

Provenance
Pieter Wuille <pieter.wuille@gmail.com>Authored on May 1 2013, 17:09
schancelPushed on Jan 5 2018, 21:58
schancelPushed on Jan 5 2018, 21:39
schancelPushed on Jan 5 2018, 21:17
Parents
rSTAGINGeef2091fe9ee: Merge pull request #2595 from sipa/noannloc
Branches
Unknown
Tags
Unknown

Event Timeline

Pieter Wuille <pieter.wuille@gmail.com> committed rSTAGING2aceeb01a9b0: Bugfix: if no bestblock record is present, do a -rescan (authored by Pieter Wuille <pieter.wuille@gmail.com>).May 1 2013, 17:21