test: fix wallet_fundrawtransaction.py

left some FIXMEs for when sendall is upgraded to support blinded
addresses
This commit is contained in:
Byron Hambly 2025-10-23 15:41:46 +02:00
parent 6d5d61b913
commit f5d048649c
No known key found for this signature in database
GPG key ID: DE8F6EA20A661697
4 changed files with 58 additions and 27 deletions

View file

@ -74,7 +74,7 @@ static RPCHelpMan sendrawtransaction()
const uint256& parent_blockhash = Params().ParentGenesisBlockHash();
for (const auto& out : mtx.vout) {
if(((out.scriptPubKey.IsUnspendableNotFee() && !out.scriptPubKey.IsPegoutScript(parent_blockhash)) || !out.scriptPubKey.HasValidOps()) && out.nValue.GetAmount() > max_burn_amount) {
if(((out.scriptPubKey.IsUnspendableNotFee() && !out.scriptPubKey.IsPegoutScript(parent_blockhash)) || !out.scriptPubKey.HasValidOps()) && out.nValue.IsExplicit() && out.nValue.GetAmount() > max_burn_amount) {
throw JSONRPCTransactionError(TransactionError::MAX_BURN_EXCEEDED);
}
}