py-substrate-interface
py-substrate-interface copied to clipboard
subscribe_block_headers connection error handling
When subscribing to new block headers, using the subscribe_block_headers method, the call hangs if the RPC endpoint becomes unreachable. Even if the endpoint becomes reachable again, the call will hang forever. This makes recovering from networking issues or RPC endpoint issues impossible.
Is it possible to have the subscription abort/raise an exception in case of a connection failure?