Please describe the feature you’d like to see added.
Let me know if this is a wanted change and I can work on it but,
If a user had already prioritized a transaction to be mined there would be no way to get it deprioritized until after this PR #27501 which adds a new RPC call to getpriotisationmap. There should be a way to remove the prioritization entirely and set it to zero without calling two separate RPCs.
Is your feature related to a problem, if so please describe it.
If a miner wants to deprioritize a transaction then they need to call two RPC methods instead of just one which would simplify things
Describe the solution you’d like
Add new RPC deprioritisetransaction(txid) this will set the delta to 0 and remove the txid from the delta map
Describe any alternatives you’ve considered
Change prioritisetransaction(txid, 0, fee_delta=0) (may cause breakage) where if fee_delta=0 then we set the delta to zero instead of modifying it 0
or
Add new param prioritisetransaction(txid, 0, fee_delta(optional), hardset_delta(optional)) Where now fee_delta and hardset_delta are both optional but at least one is needed
Please leave any additional context
This idea mentioned here towards the end in PR review club https://bitcoincore.reviews/27501