Skip to content

Commit

Permalink
RPC: only enforce dust rules on priority when standardness active
Browse files Browse the repository at this point in the history
  • Loading branch information
instagibbs committed Nov 20, 2024
1 parent ca050d1 commit 08e969b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rpc/mining.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
}

Expand Down

0 comments on commit 08e969b

Please sign in to comment.