boltlabs-inc / zeekoe

Zero-knowledge layer-2 payment channels
MIT License
24 stars 1 forks source link

add PendingMutualClose state for customer #302

Closed marsella closed 3 years ago

marsella commented 3 years ago

As described. In particular, this restricts the mutual close flow so that it can only be entered from a Ready channel, not one in any other state. @indomitableSwan can you confirm this is correct?

Fixes #218.

indomitableSwan commented 3 years ago

As described. In particular, this restricts the mutual close flow so that it can only be entered from a Ready channel, not one in any other state. @indomitableSwan can you confirm this is correct?

Fixes #218.

Yes, mutual close should only be possible when the contract has status Open and there are no payments taking place on the channel (ie the channel is in the Ready state).