hirosystems / ordhook

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

db sync unable to retrieve Bitcoin chain tip #234

Closed GuutBoy closed 10 months ago

GuutBoy commented 10 months ago

Running ordhook db sync --config-path=./Ordhook.toml to sync the db I get this error

ERRO unable to retrieve Bitcoin chain tip (JSON-RPC error: transport error: unexpected HTTP code: 400)

I previously posted this issue https://github.com/hirosystems/ordhook/issues/232 where the sync would get stuck after saving a few thousand blocks to disk. This seemed to be fixed by upgrading the bitcoin core to version 25.0. But now after ordhook saving blocks up to ~820000 to disk this error is appearing. Any idea what might be causing this?

GuutBoy commented 10 months ago

Ah, figured it out. Bitcoin core was configured wrong.