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.
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.