Have HasDust and PreCheckValidEphemeralTx take CTransaction

This commit is contained in:
Greg Sanders
2024-11-12 11:59:42 -05:00
parent 04a614bf9a
commit 3ed930a1f4
4 changed files with 7 additions and 7 deletions

View File

@@ -496,7 +496,7 @@ static RPCHelpMan prioritisetransaction()
// Non-0 fee dust transactions are not allowed for entry, and modification not allowed afterwards
const auto& tx = mempool.get(hash);
if (tx && HasDust(tx, mempool.m_opts.dust_relay_feerate)) {
if (tx && HasDust(*tx, mempool.m_opts.dust_relay_feerate)) {
throw JSONRPCError(RPC_INVALID_PARAMETER, "Priority is not supported for transactions with dust outputs.");
}