mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-04 13:55:23 -05:00
RPC: only enforce dust rules on priority when standardness active
This commit is contained in:
parent
ca050d12e7
commit
08e969bd10
1 changed files with 1 additions and 1 deletions
|
@ -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.");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue