HomePhabricator

[wallet] Move getHeight from Chain::Lock interface to simple Chain

Description

[wallet] Move getHeight from Chain::Lock interface to simple Chain

Summary:
Instead of calling getHeight, we rely on CWallet::m_last_block
processed_height where it's possible.

Backport of Core PR16426 part [1/5] : https://github.com/bitcoin/bitcoin/pull/16426/commits/b855592d835bf4b3fb1263b88d4f96669a1722b1

Test Plan:

ninja all check-all

Reviewers: #bitcoin_abc, majcosta

Reviewed By: #bitcoin_abc, majcosta

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

Details

Provenance
Antoine Riard <ariard@student.42.fr>Authored on Jul 10 2019, 00:07
deadalnixCommitted on Oct 15 2020, 21:13
deadalnixPushed on Oct 15 2020, 21:13
Reviewer
Restricted Project
Differential Revision
D7934: [wallet] Move getHeight from Chain::Lock interface to simple Chain
Parents
rABC2c98a843a474: [build-bot] Fix character escapes in ignore list
Branches
Unknown
Tags
Unknown