hirosystems / ordhook

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

ordhook stuck in indexing inscriptions and never send any data to my endpoint #248

Closed wycl16514 closed 7 months ago

wycl16514 commented 8 months ago

dear friends:

I am new to ordhook and trying ordhook to stream ordinal activities to my endpoint, I used a CHAINSTACK endpoint, and following is my Ordhook.toml:

[storage]
working_dir = "ordhook"

# [http_api]
# http_port = 20456

[network]
mode = "mainnet"
bitcoind_rpc_url = "http://IP:PORT"
bitcoind_rpc_username = "XXXXXXX"
bitcoind_rpc_password = "XXXXXX"

bitcoind_zmq_url = "tcp://IP:PORT"

[limits]
max_number_of_bitcoin_predicates = 100
max_number_of_concurrent_bitcoin_scans = 100
max_number_of_processing_threads = 16
bitcoin_concurrent_http_requests_max = 16
max_caching_memory_size_mb = 32000

[bootstrap]
download_url = "https://archive.hiro.so/mainnet/ordhook/mainnet-ordhook-sqlite-latest"

[logs]
ordinals_internals = true
chainhook_internals = true

because Ordhook can't use a https endpoint, therefore I used nginx as proxy, 47.128.200.237 is the ip of my nginx server. I used the following command to start the service:

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

and the service stuck in the following state and without sending any data to my endpoint:

image

I guest the problem lies in the field bitcoind_zmq_url = "tcp://IP:PORT", I saw from the doc that, this field is set to tcp://0.0.0.0:18543, which means the bitcoin node should locate at the same machine as ordhook, but I don't have a full bitcoin node in my local and I have to use a remote bitcoin service.

Do you know what's my problem, how can I fix that, I am highly appreciate your help, thank you very much.

lgalabru commented 8 months ago

because Ordhook can't use a https endpoint, therefore I used nginx as proxy, 47.128.200.237

You should be able to use https 🤔 What do you see?

wycl16514 commented 8 months ago

hi,@lgalabru , if we use https endpoint, ordhook will show http transport erorr 400, that's because rust-bitcoinrpc crat can't support https. By the way, do you know why we stuck in there without receiving any data notification? Thanks alot.

blieb commented 8 months ago

I think it is not yet ready with syncing with blockchain? I see at your log that it is only at block 78017 (that is a long long time ago).

I did start ordhook 2 days ago. and it just indexed a block from 2021.

it should use a bootstrap. but I see https://archive.hiro.so/mainnet/ordhook/mainnet-ordhook-sqlite-latest is empty.

I see there is a https://archive.hiro.so/mainnet/ordhook/mainnet-ordhook-sqlite-latest.tar.gz do we need to set this url? will try this later today.

lgalabru commented 7 months ago

@blieb new snapshots are ready, you should be able to use them to shortcut the initial indexing.

lgalabru commented 7 months ago

Feel free to re-open this issue with more logs and more details if you're still struggling with the setup!