Closed RCasatta closed 1 year ago
On a deeper inspection, the connection is dropped after a while if anything is sent over the wire (blockstream endpoint cut after one minute).
By adding a ping and a lower sleeping period the notification is sent.
I am not sure if there is a way for the pop logic to error in case the connection isn't alive
New header notification seems to not be received,
in absence of a regtest env, I tried this long-running test. Even after a new block is found on mainnet, the block_headers_pop always return
None
even though the message should be handled by https://github.com/bitcoindevkit/rust-electrum-client/blob/20493aa475719d0ea7364e86b121117bf32bc5cf/src/raw_client.rs#L651I tested with default electrum server and with
export TEST_ELECTRUM_SERVER=electrum.bitaroo.net:50001