Skip to content

Commit 08e969b

Browse files
committed
RPC: only enforce dust rules on priority when standardness active
1 parent ca050d1 commit 08e969b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rpc/mining.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ static RPCHelpMan prioritisetransaction()
496496

497497
// Non-0 fee dust transactions are not allowed for entry, and modification not allowed afterwards
498498
const auto& tx = mempool.get(hash);
499-
if (tx && !GetDust(*tx, mempool.m_opts.dust_relay_feerate).empty()) {
499+
if (mempool.m_opts.require_standard && tx && !GetDust(*tx, mempool.m_opts.dust_relay_feerate).empty()) {
500500
throw JSONRPCError(RPC_INVALID_PARAMETER, "Priority is not supported for transactions with dust outputs.");
501501
}
502502

0 commit comments

Comments
 (0)