Page MenuHomePhabricator

wallet: Avoid use of Chain::Lock in importprunedfunds
ClosedPublic

Authored by deadalnix on Oct 10 2020, 23:22.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC950aa996a030: wallet: Avoid use of Chain::Lock in importprunedfunds
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 the "Block not found in chain" error
will be stricter and not allow importing data from a blocks between the wallet
last processed tip and the current node tip.

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

Depends on D7866

Test Plan
ninja all check

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.