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
to finish loading blocks during startup
We sometimes see this error in test, ``` --- FAIL: TestBitcoindEvents (7.72s) --- FAIL: TestBitcoindEvents/Events_via_RPC_Polling (1.00s) bitcoind_events_test.go:480: Error Trace: /home/runner/work/btcwallet/btcwallet/chain/bitcoind_events_test.go:480 /home/runner/work/btcwallet/btcwallet/chain/bitcoind_events_test.go:49 Error: Received unexpected error: -28: Loading block index… Test: TestBitcoindEvents/Events_via_RPC_Polling FAIL ``` which can also happen in real life if `bitcoind` is still loading blocks. This commit adds a retry logic to wait for `bitcoind` to finish its startup.
- Loading branch information