dcrwallet icon indicating copy to clipboard operation
dcrwallet copied to clipboard

rpc: Add TSpendPolicies and SetTSpendPolicy requests

Open bgptr opened this issue 2 years ago • 0 comments

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 calling SetVspdVoteChoices, just like when voting to the consensus changes. This applies to SetTreasuryPolicy too. Closes https://github.com/decred/decrediton/issues/3763
  • SetVspdVoteChoices function updates all treasuryPolicies and tspendPolicies now and not just the ones that related to a particular ticket.

bgptr avatar Jul 25 '22 18:07 bgptr