-
Notifications
You must be signed in to change notification settings - Fork 11
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
api: disable construction API if spend policy is unset #232
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No integration 🧪 ?
I would rather omit the |
@lukechampine SiaFoundation/core#268 (comment) I'm fine with that, but we have to reconcile with this change since the API client can no longer unmarshal a transaction with an unset policy. From my perspective, we have two options: we can either reconsider SiaFoundation/core#268 or we can force the spend policy to a default here. |
e3a0caf
to
71be43b
Compare
IIUC this means that you'll get an API error if |
It's also used in the legacy |
Ok. As-is, this is not great, not terrible. I'd be ok merging now and following up later. |
65021ca
efe6fcb
to
65021ca
Compare
There was a change in coreutils that makes it so the zero value of spend policy cannot be encoded or decoded. This changes the construction API to return an error if one of the funding addresses does not have a policy set.