HomePhabricator

wallet: Avoid use of Chain::Lock in importmulti

Description

wallet: Avoid use of Chain::Lock in importmulti

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 may use a more accurate rescan
time.

This is part [6/12] of Core PR17954 : https://github.com/bitcoin/bitcoin/pull/17954/commits/bc96a9bfc61afdb696fb92cb644ed5fc3d1793f1

Depends on D7868

Test Plan:

ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

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