This repository has been archived by the owner on Apr 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
sdk/state: change open/confirm/payment validations to check against ChannelState() when possible #261
Comments
Could you link to some validations that would change and be replaced with the new state function? |
we might want to add the same validation for checking if already closed / closing too 🤔 |
I think the first four spots you linked to make sense and look like good candidates for that. The last spot less so because the guard is checking an authorized close agreement exists before copying it and modifying it for early closure. |
This was referenced Aug 30, 2021
adding next steps for when I or someone jumps back on this. We'll need to add more granular states for the open steps. @leighmcculloch 's suggestion: Probably 2 PRs to complete:
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
right now validations for open/confirm/payment are checking against the state of the latest agreements. Now that we have an overall ChannelState() enum, we should instead (or possibly also) check against that value
The text was updated successfully, but these errors were encountered: