Return MAX_PRIORITY when transactions contain an Orchard bundle.

This commit is contained in:
Kris Nuttycombe 2022-04-07 07:25:02 -06:00
parent dada8b38bc
commit 14f06f9f06
1 changed files with 5 additions and 1 deletions

View File

@ -1115,7 +1115,11 @@ double CCoinsViewCache::GetPriority(const CTransaction &tx, int nHeight) const
// use the maximum priority for all (partially or fully) shielded transactions.
// (Note that coinbase transactions cannot contain JoinSplits, or Sapling shielded Spends or Outputs.)
if (tx.vJoinSplit.size() > 0 || tx.vShieldedSpend.size() > 0 || tx.vShieldedOutput.size() > 0) {
if (tx.vJoinSplit.size() > 0 ||
tx.vShieldedSpend.size() > 0 ||
tx.vShieldedOutput.size() > 0 ||
tx.GetOrchardBundle().IsPresent())
{
return MAX_PRIORITY;
}