HomePhabricator

use cached most recent compact block when available

Description

use cached most recent compact block when available

Summary:
We lost the m_most_recent_compact_block optimization when removing segwit, because in Core's codebase it used to be gated by state.fWantsCmpctWitness. See rABCf7a1e4adc8a9 and D2620.
As a result m_most_recent_compact_block is computed but unused. Make use of it.

This brings our codebase in line with Bitcoin Core's codebase just before core#24062 (next backport)

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
PiRKAuthored on Nov 30 2023, 07:57
PiRKPushed on Dec 1 2023, 09:22
Reviewer
Restricted Project
Differential Revision
D14878: use cached most recent compact block when available
Parents
rABC417096493e69: [e.cash] Bump latestVersion to 0.28.4 on upgrade page
Branches
Unknown
Tags
Unknown