diff options
author | Anthony Towns <aj@erisian.com.au> | 2023-01-25 18:13:00 +1000 |
---|---|---|
committer | Anthony Towns <aj@erisian.com.au> | 2023-01-25 18:15:12 +1000 |
commit | ecb0a3e4259b81d6bb74d59a58eb65552c17d8d8 (patch) | |
tree | 876ac6f1c9bc0f0aa71cde58da1c2d386d634e45 /src/test/fuzz | |
parent | c5837757068bf8ea3e5b6fdad82f69d1deb81545 (diff) |
net_processing: Don't process tx after processing orphans
If we made progress on orphans, consider that enough work for this peer
for this round of ProcessMessages. This also allows cleaning up the api
for TxOrphange:GetTxToReconsider().
Diffstat (limited to 'src/test/fuzz')
-rw-r--r-- | src/test/fuzz/txorphan.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/test/fuzz/txorphan.cpp b/src/test/fuzz/txorphan.cpp index 4673b884dc..f9d1bb85cb 100644 --- a/src/test/fuzz/txorphan.cpp +++ b/src/test/fuzz/txorphan.cpp @@ -89,11 +89,8 @@ FUZZ_TARGET_INIT(txorphan, initialize_orphanage) }, [&] { { - bool more = true; - CTransactionRef ref = orphanage.GetTxToReconsider(peer_id, more); - if (!ref) { - Assert(!more); - } else { + CTransactionRef ref = orphanage.GetTxToReconsider(peer_id); + if (ref) { bool have_tx = orphanage.HaveTx(GenTxid::Txid(ref->GetHash())) || orphanage.HaveTx(GenTxid::Wtxid(ref->GetHash())); Assert(have_tx); } |