HomePhabricator

[backport#15931 7/9] Use CWallet::m_last_block_processed_height in…

Description

[backport#15931 7/9] Use CWallet::m_last_block_processed_height in GetDepthInMainChain

Summary:
Avoid to lock chain to query state thanks to tracking last block
height in CWallet.


https://github.com/bitcoin/bitcoin/pull/15931/commits/0ff03871add000f8b4d8f82aeb168eed2fc9dc5f

Depends on D7511

Partial backport of Core PR15931

Test Plan:

ninja check check-functional

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
Antoine Riard <ariard@student.42.fr>Authored on Apr 22 2019, 18:22
majcostaCommitted on Sep 22 2020, 14:59
majcostaPushed on Sep 22 2020, 14:59
Reviewer
Restricted Project
Differential Revision
D7512: [backport#15931 7/9] Use CWallet::m_last_block_processed_height in GetDepthInMainChain
Parents
rABCc3248ae486c6: [backport#15931 6/9] Only return early from BlockUntilSyncedToCurrentChain if…
Branches
Unknown
Tags
Unknown