boltlabs-inc / zeekoe

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

Update merchant watcher to respond to mutual close #337

Closed marsella closed 2 years ago

marsella commented 2 years ago

Right now, the merchant's mutual close function calls the verify_contract_closed() function, which is supposed to wait until the contract is closed on chain. This does not align with the way things are implemented, and in fact, this function is not implemented.

Instead, the merchant chain watcher should add a condition for this case. The scenario will be: contract is closed and local channel status is PendingMutualClose. Then it can call finalize_mutual_close.

gijsvl commented 2 years ago

Add this scenario to README.md (there is only unilateral close right now)