mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-19 23:03:45 +01:00
clusterlin: add DepGraph::RemoveTransactions and support for holes in DepGraph
This commits introduces support in DepGraph for the transaction positions to be non-continuous. Specifically, it adds: * DepGraph::RemoveTransactions which removes 0 or more positions from a DepGraph. * DepGraph::Positions() to get a set of which positions are in use. * DepGraph::PositionRange() to get the highest used position in a DepGraph + 1. In addition, it extends the DepGraphFormatter format to support holes in a compatible way (it serializes non-holey DepGraphs identically to the old code, and deserializes them the same way)
This commit is contained in:
@@ -15,7 +15,7 @@ BOOST_AUTO_TEST_CASE(feefrac_operators)
|
||||
FeeFrac sum{1500, 400};
|
||||
FeeFrac diff{500, -200};
|
||||
FeeFrac empty{0, 0};
|
||||
FeeFrac zero_fee{0, 1}; // zero-fee allowed
|
||||
[[maybe_unused]] FeeFrac zero_fee{0, 1}; // zero-fee allowed
|
||||
|
||||
BOOST_CHECK(empty == FeeFrac{}); // same as no-args
|
||||
|
||||
|
||||
Reference in New Issue
Block a user