Page MenuHomePhabricator

[avalanche] Remove finalized txs upon block finalization
ClosedPublic

Authored by Fabien on Fri, Apr 19, 10:18.

Details

Reviewers
PiRK
Group Reviewers
Restricted Project
Commits
rABCf47d323192d1: [avalanche] Remove finalized txs upon block finalization
Summary

Make sure the txs remain finalized after a block is mined.
Note that we still need to remove the txs from the radix tree if another
event (not a block) is causing the mempool removal.

Test Plan
ninja all check-all

Diff Detail

Repository
rABC Bitcoin ABC
Branch
avlanche_remove_finalized_tx_upon_block_finalization
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 28660
Build 56861: Build Difflint-circular-dependencies · build-without-wallet · build-diff · build-debug · build-clang-tidy · build-clang
Build 56860: arc lint + arc unit

Event Timeline

Fabien requested review of this revision.Fri, Apr 19, 10:18
PiRK added inline comments.
src/net_processing.cpp
6257

TIL !"string"
I'm not sure this adds much info vs a simple assert(ReadBlockFromDisk(...))

Assertion `!"cannot load block from disk"' failed.

vs

Assertion `ReadBlockFromDisk()' failed.
This revision is now accepted and ready to land.Sat, Apr 20, 19:58