Add missing filter to ensure only fully-transparent transactions end up in mapOrphans.

This commit is contained in:
Kris Nuttycombe 2022-03-25 15:02:08 -06:00
parent 9f4e5ef2cc
commit ecc1e5da0c
1 changed files with 3 additions and 2 deletions

View File

@ -6850,11 +6850,12 @@ bool static ProcessMessage(const CChainParams& chainparams, CNode* pfrom, string
for (uint256 hash : vEraseQueue)
EraseOrphanTx(hash);
}
// TODO: currently, prohibit joinsplits and shielded spends/outputs from entering mapOrphans
// TODO: currently, prohibit joinsplits and shielded spends/outputs/actions from entering mapOrphans
else if (fMissingInputs &&
tx.vJoinSplit.empty() &&
tx.vShieldedSpend.empty() &&
tx.vShieldedOutput.empty())
tx.vShieldedOutput.empty() &&
!tx.GetOrchardBundle().IsPresent())
{
AddOrphanTx(tx, pfrom->GetId());