ordhook icon indicating copy to clipboard operation
ordhook copied to clipboard

Unable to find block

Open 0xharriger opened this issue 10 months ago • 2 comments

I'm currently using v2.2.5. I have completed the synchronisation of the Bitcoin mainnet and I get an error when I execute the command below.

ordhook service start --post-to=http://localhost:3000/api/events --config-path=./Ordhook.toml

Feb 12 23:18:28.520 WARN Unable to find block #180783, will retry in 21.322s
Feb 12 23:18:40.554 ERRO Unable to compute inscription's Satoshi: block #180783 not in database (traversing 0x217315731e17784939bf348a3b4931772bad369ddf43b41212ddc65c75ff9fa8 / 775565 in progress)
Feb 12 23:18:40.555 INFO Inscriptions data computation for block #775565 collected
Feb 12 23:18:40.555 INFO Inscriptions data computation for block #775565 ended
Feb 12 23:18:40.556 INFO Inscription 994d5c5077094988f4c6b125d157a5038841f7accd82b0b57d5c5491bf0b1776i0 (#17054) detected on Satoshi 1610910625766152 (block #775565, 361 transfers)
Feb 12 23:18:40.556 INFO Inscription aad6be4814fc9156ace153fa1100dbc33d8b421bb3b663a0ed2fc8eea74df126i0 (#17055) detected on Satoshi 306194366222920 (block #775565, 451 transfers)
Feb 12 23:18:40.556 INFO Inscription 6b77ea6a1a43ee1a66dd3dc3dfdfaa356f401a33d685c569fb63905e9a08e869i0 (#17056) detected on Satoshi 542104461910077 (block #775565, 541 transfers)
Feb 12 23:18:40.556 INFO Inscription 647b0cafe5a6fc545e40b6c1bab910c43adfe6b372fee0cc65d0aef9e470d820i0 (#17057) detected on Satoshi 86481906862342 (block #775565, 2146 transfers)
Feb 12 23:18:40.556 INFO Inscription 31fe32ec54b8b7b146cd9977e824f2ba0cd35ba82dbaa617a7d9ae6698544842i0 (#17058) detected on Satoshi 1073845235850768 (block #775565, 577 transfers)
Feb 12 23:18:40.556 INFO Inscription fe26aa9c6aca494e02dde3c69f49554c6492eb0eb687f0e889be9031ab911649i0 (#17059) detected on Satoshi 13858030559863 (block #775565, 353 transfers)
Feb 12 23:18:40.556 INFO Inscription 1d291644b8e9e2c9646fa97287c2f6c8cf168e0bc9b6e3cc545b382294cf5289i0 (#17060) detected on Satoshi 1923194672875742 (block #775565, 69 transfers)
Feb 12 23:18:40.557 INFO Inscription 71213a4e95d42986201016ca36b199b1a29861d4d68a0bfc685f56755d9a79a5i0 (#17061) detected on Satoshi 1618065351783051 (block #775565, 271 transfers)

I have followed #269 and performed ulimit -Sn 5000, but the same issue still occurs.

0xharriger avatar Feb 12 '25 23:02 0xharriger

Sounds like your hord.rocksdb database is corrupted. You should try downloading a recent snapshot from our archives from here and then move this into your working directory: https://archive.hiro.so/mainnet/ordhook/mainnet-ordhook-rocksdb-latest.tar.gz

rafaelcr avatar Feb 13 '25 22:02 rafaelcr

Sounds like your hord.rocksdb database is corrupted. You should try downloading a recent snapshot from our archives from here and then move this into your working directory: https://archive.hiro.so/mainnet/ordhook/mainnet-ordhook-rocksdb-latest.tar.gz

Thanks for the reply, I've downloaded the snapshot and am in the process of indexing it, is there any way to check if all indexing is complete?

0xharriger avatar Feb 16 '25 23:02 0xharriger

To verify if indexing is up to date, you can check the chain_tip table in the Ordinals Postgres database. This table shows the most recent block height where a transaction was indexed. Since indexing is ongoing, you can compare this height with the latest Bitcoin block to ensure you're in sync.

ASuciuX avatar Jun 05 '25 12:06 ASuciuX

Hy @0xharriger , can you please share if everything was solved?

ASuciuX avatar Jun 27 '25 13:06 ASuciuX