RPC: only enforce dust rules on priority when standardness active

This commit is contained in:
Greg Sanders 2024-11-12 13:19:40 -05:00
parent ca050d12e7
commit 08e969bd10

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 && !GetDust(*tx, mempool.m_opts.dust_relay_feerate).empty()) {
if (mempool.m_opts.require_standard && tx && !GetDust(*tx, mempool.m_opts.dust_relay_feerate).empty()) {
throw JSONRPCError(RPC_INVALID_PARAMETER, "Priority is not supported for transactions with dust outputs.");
}