For #3546. Shielded tx with missing inputs are not treated as orphans.
This commit is contained in:
@@ -5483,8 +5483,11 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
|
|||||||
BOOST_FOREACH(uint256 hash, vEraseQueue)
|
BOOST_FOREACH(uint256 hash, vEraseQueue)
|
||||||
EraseOrphanTx(hash);
|
EraseOrphanTx(hash);
|
||||||
}
|
}
|
||||||
// TODO: currently, prohibit joinsplits from entering mapOrphans
|
// TODO: currently, prohibit joinsplits and shielded spends/outputs from entering mapOrphans
|
||||||
else if (fMissingInputs && tx.vjoinsplit.size() == 0)
|
else if (fMissingInputs &&
|
||||||
|
tx.vjoinsplit.empty() &&
|
||||||
|
tx.vShieldedSpend.empty() &&
|
||||||
|
tx.vShieldedOutput.empty())
|
||||||
{
|
{
|
||||||
AddOrphanTx(tx, pfrom->GetId());
|
AddOrphanTx(tx, pfrom->GetId());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user