-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement tspend policy operations APIs #234
Comments
Add optional params to
|
The mostly seems fine, but I don't see a way to disallow a specific pi key (for example, if it gets compromised, etc). Simply not specifying one would result in an abstain as opposed to explicitly voting no. |
Typo - I fixed the |
I've started implementing this and rather than creating new endpoints for The name |
Still waiting for a way to bulk retrieve tspend/treasury policies from dcrwallet for the purpose of consistency checking. Also identified that tspend and treasury policies could be a DoS vector for VSP servers. If vspd accepts any hash and/or any treasury key, a malicious user could spam loads of them and fill the vspd/wallet DBs. |
This is still outstanding, the last thing required before this issue is closed.
This was mitigated by subjecting tspend/treasury vote changes to the same limit as agenda vote changes. The database will only keep a record of the 10 most recent changes for each ticket. |
Policy choice for tspends can be set on dcrwallet for both a specific pi key (that is, approving or disapproving all tspends signed by some given key) or by individual tspend hash.
This needs to be exposed so that stakeholders can select their preference for when their vote is cast.
At a minimum, users need to be able to set and retrieve the vote choices for a given ticket.
The text was updated successfully, but these errors were encountered: