dcrwallet
dcrwallet copied to clipboard
rpc: Add TSpendPolicies and SetTSpendPolicy requests
This will allow decrediton to now get and update the pending tspend policies.
Notes:
-
SetTSpendPolicy
does not update VSPs about the vote choices, but decrediton takes care of it by callingSetVspdVoteChoices
, just like when voting to the consensus changes. This applies toSetTreasuryPolicy
too. Closes https://github.com/decred/decrediton/issues/3763 -
SetVspdVoteChoices
function updates alltreasuryPolicies
andtspendPolicies
now and not just the ones that related to a particular ticket.