HomePhabricator

wallet: Avoid use of Chain::Lock in importwallet and dumpwallet

Description

wallet: Avoid use of Chain::Lock in importwallet and dumpwallet

Summary:
This is a step toward removing the Chain::Lock class and reducing cs_main
locking.

This change only affects behavior in the case where wallet last block processed
falls behind the chain tip, in which case it will use more accurate backup and
rescan timestamps.

This is part [5/12] of Core PR17954 : https://github.com/bitcoin/bitcoin/pull/17954/commits/25a9fcf9e53bfa94e8f8b19a4abfda0f444f6b2a

Depends on D7867

Test Plan:

ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D7868

Details

Provenance
Russell Yanofsky <russ@yanofsky.org>Authored on Jan 16 2020, 21:42
deadalnixCommitted on Oct 11 2020, 12:25
deadalnixPushed on Oct 11 2020, 12:25
Reviewer
Restricted Project
Differential Revision
D7868: wallet: Avoid use of Chain::Lock in importwallet and dumpwallet
Parents
rABC950aa996a030: wallet: Avoid use of Chain::Lock in importprunedfunds
Branches
Unknown
Tags
Unknown