Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chain: wait for bitcoind rpc to warm up
This modifies the `Start` method to handle the `RPC_IN_WARMUP` error code of `-28` by retrying the rpc call to determine the current network every second until it either succeeds or fails with a different code. The current behavior fails and terminates the connection upon receiving this error code. This change allows for connecting to a recently started bitcoind node and starting the client while bitcoind is still warming up. Related issue: lightningnetwork/lnd#1533
- Loading branch information