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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Fabien requested review of this revision.Fri, Apr 19, 10:18
PiRK added inline comments.
src/net_processing.cpp
6257 ↗(On Diff #47299)

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