mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-19 23:03:45 +01:00
txgraph: Allow Refs to outlive the TxGraph (feature)
This commit is contained in:
@@ -587,4 +587,10 @@ FUZZ_TARGET(txgraph)
|
||||
|
||||
// Sanity check again (because invoking inspectors may modify internal unobservable state).
|
||||
real->SanityCheck();
|
||||
|
||||
// Kill the TxGraph object.
|
||||
real.reset();
|
||||
// Kill the simulated graphs, with all remaining Refs in it. If any, this verifies that Refs
|
||||
// can outlive the TxGraph that created them.
|
||||
sims.clear();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user