-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bitcoind
does not retrieve blocks with conf
argument
#372
Comments
bitcoind
does not retrieve blocks with conf
argument
Bitcoin.conf file for your review
|
@timstackblock and I were able to figure this one out. It looks like the bitcoin node just hadn't synced yet, so the predicate was trying to check blocks that did not yet exist on the chain. The bitcoin node was returning an RPC error stating that the requested block was out of range, but the user never sees that error. I've opened #375 to fix how we display errors here. But it looks like everything works fine with a bitcoin node, and our documentation on how to set one up is sufficient. On a side note, when Tim started bitcoind without a config, only passing in terminal arguments, the scan would work. This was confusing for a while. It turns out that the bitcoin.conf specified a different data directory than the default termnial startup conditions, so while the default location did have all blocks synced, the location specified by the config did not. This resulted in the confusing behavior where one worked and the other didn't. |
Thanks for the screenshare and help @MicaiahReid |
Describe the bug
Launching bitcoind with the command given in the documents:
bitcoind -conf=<path-to-bitcoin.config>/bitcoin.conf
For some reason chainhooks can't read the rpcuser=root rpcpassword=root in the file. This results in no blocks being found, when the predicate is ran the user gets this error message
Launching bitcoind with this command allows the predicate to be run as it can find the blocks
./bitcoind -rpcuser=root -rpcpassword=root
Has anyone else run into this?
The text was updated successfully, but these errors were encountered: