Page MenuHomePhabricator

remove coinbase spend tracking in CTxMemPoolEntry
ClosedPublic

Authored by PiRK on Mar 27 2024, 09:58.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC5f461d35eff6: remove coinbase spend tracking in CTxMemPoolEntry
Summary

Tracking of coinbase spends in CTxMemPoolEntry was introduced in https://github.com/bitcoin/bitcoin/pull/6915/commits/7e49f5f8b4e237d7212d027a7bea4bbd52c9e7b6
After removing removeForReorg in D13133, a lot of the code that previously cared about whether a mempool tx spends a coinbase no longer does.

Coinbase maturity is still checked via MemPoolAccept::PreChecks -> Consensus::CheckTxInputs.

Depends on D15788

Test Plan

ninja all check-all bench-bitcoin

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

PiRK published this revision for review.Mar 27 2024, 09:59
PiRK edited the test plan for this revision. (Show Details)
PiRK retitled this revision from emove coinbase spend tracking in CTxMemPoolEntry to remove coinbase spend tracking in CTxMemPoolEntry.
This revision is now accepted and ready to land.Mar 27 2024, 14:13