hirosystems / ordhook

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

wait for bitcoind to be ready on boot #318

Closed rafaelcr closed 1 week ago

rafaelcr commented 1 month 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