bitcoindevkit / rust-electrum-client

Bitcoin Electrum client library. Supports plaintext, TLS and Onion servers.
MIT License
80 stars 62 forks source link

Persist subscription status across reconnects #124

Open tnull opened 1 year ago

tnull commented 1 year ago

It would be nice if the client would re-subscribe to block headers/scripts if the connection was ever dropped and we're reconnecting.

Alternatively, script_pop/block_headers_pop could return an error indicating that the subscription has been cancelled in the meantime.