From 08e969bd1076c99e0b43ecd01dd790b9ebd04d0a Mon Sep 17 00:00:00 2001 From: Greg Sanders Date: Tue, 12 Nov 2024 13:19:40 -0500 Subject: [PATCH] RPC: only enforce dust rules on priority when standardness active --- src/rpc/mining.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rpc/mining.cpp b/src/rpc/mining.cpp index ca88fad61ef1b..3019789d09b0e 100644 --- a/src/rpc/mining.cpp +++ b/src/rpc/mining.cpp @@ -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."); }