mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-01 00:34:01 +02:00
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().
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user