mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-24 13:59:38 +02:00
txgraph: use enum Level instead of bool main_only
This commit is contained in:
@@ -114,9 +114,9 @@ void BenchTxGraphTrim(benchmark::Bench& bench)
|
||||
graph->GetBlockBuilder();
|
||||
});
|
||||
|
||||
assert(!graph->IsOversized());
|
||||
assert(!graph->IsOversized(TxGraph::Level::TOP));
|
||||
// At least 99% of chains must survive.
|
||||
assert(graph->GetTransactionCount() >= (NUM_TOP_CHAINS * NUM_TX_PER_TOP_CHAIN * 99) / 100);
|
||||
assert(graph->GetTransactionCount(TxGraph::Level::TOP) >= (NUM_TOP_CHAINS * NUM_TX_PER_TOP_CHAIN * 99) / 100);
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user