f321x / cashu-escrow-kit

Ecash escrow provider and client concept. Ecash hackathon project with @rodant.
MIT License
14 stars 3 forks source link

Make coordinator more resilient #34

Closed f321x closed 1 month ago

f321x commented 2 months ago

Addresses https://github.com/f321x/cashu-escrow-kit/issues/11 If the coordinator crashes for any reason it now tries to close the old nostr client, wait 60 seconds and then creates a new nostr client (new connections & subscriptions) without losing the pending and ongoing contracts. While this could maybe designed with more advanced timeout mechanisms this should be able to catch most problems (that happen rarely anyways) without adding too much complexity.