hirosystems / ordhook

Build indexers, standards and protocols on top of Ordinals and Inscriptions (BRC20, etc).
Apache License 2.0
190 stars 56 forks source link

wait for bitcoind to be ready on boot #318

Closed rafaelcr closed 3 months ago

rafaelcr commented 4 months ago

When starting ordhook, these errors are common

unable to retrieve Bitcoin chain tip (JSON-RPC error: RPC error response: RpcError { code: -28, message: "Loading block index…", data: None })
unable to connect to bitcoind: JSON-RPC error: RPC error response: RpcError { code: -28, message: "Loading block index…", data: None }

we should retry this attempt indefinitely if we see code -28 returned by bitcoind