boltlabs-inc / zeekoe

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

Fix customer status flow in unilateral closes #298

Closed marsella closed 2 years ago

marsella commented 3 years ago

Right now, the customer status flow when the merchant posts expiry is

  1. Immediately enter PendingClose
  2. Enter PendingExpiry if they don't have updated balances
  3. otherwise stay in PendingClose

But the spec says it should

  1. Immediately enter PendingExpiry
  2. Enter PendingClose if they do have updated balances
  3. otherwise stay in PendingExpiry

I think this should be fixed so that we