I'm on Ubuntu and can’t figure out how to use the -verifychain option with bitcoin-cli. Works fine with curl but typing it directly isn't clicking for me. I know it needs two parameters, but where do I put them?
How to use bitcoin-cli verifychain on Ubuntu?
5 replies 401 views
From what I understand, just put the two numbers right after the command, separated by a space. You could also try named to specify the parameter names. Like this: $bitcoin-cli named verifychain checklevel=1 nblocks=0.
That actually worked! But here’s the kicker when I run verifychain, it always says true, except for when I set nblocks=0 to check all blocks. Then it goes false. Is this a timeout issue or something?
Trying to figure that out too. When I check with higher block counts, it keeps returning false with the error: null. Just ran it with 4 and 500 blocks. No clue what's going on.
Check your 'debug.log' for more details. Look in your bitcoin datadir. You should see lines that start with "Verifying last <N> blocks at level <N>" and end with "Verification: <message>". The nBlocks and level should match what you’re checking against.
Thanks! Just found the info I needed in debug.log. That helped a lot.
Related topics
- Need Help Cracking My Bitcoin Wallet Password 19
- Need Help Redirecting Bitcoin Knots to Existing Blockchain 3
- Understanding the Bitcoin Wallet Code 2
- Setting Up a Bitcoin Wallet System for My Website 19
- Help Needed for Long-Stuck Bitcoin Transactions since February 19
- Is KYC Destroying Bitcoin's Pseudonymity? 21