Author

Topic: command line: bitcoin-cli verifychain (Read 127 times)

member
Activity: 85
Merit: 25
May 29, 2024, 09:23:42 AM
#6
Thank you, found the pertinent info in the debug.log. 
legendary
Activity: 2534
Merit: 6080
Self-proclaimed Genius
May 25, 2024, 12:10:47 AM
#5
Check you recent 'debug.log' entries for more detailed result. (located in bitcoin datadir)

The lines related to verifychain command should start from "Verifying last blocks at level " line to "Verification: " result.
The "nBlocks" and "verification level" should match the command that returned that 'error: null' response.
member
Activity: 85
Merit: 25
May 24, 2024, 07:40:12 AM
#4
I am trying to track this down.  getblockchaininfo looks good.   verifychain with higher block counts returns false with error: null.  Not really sure what the cause might be.  sample run for 4, 500.
response follows:
Code:
{"result":false,"error":null,"id":2}

member
Activity: 85
Merit: 25
May 24, 2024, 05:33:39 AM
#3
OK that works great.  When I run the verifychain with any parameter it always returns true, except when nblocks=0 which specifies it should read all blocks.  When nblocks=0 it always returns false.  Also larger numbers return false.  Would it be some kind of timeout issue?
legendary
Activity: 2534
Merit: 6080
Self-proclaimed Genius
May 24, 2024, 12:37:52 AM
#2
AFAIK it should just take the two positional arg's numeric values right after the command, each separated by whitespace.

You can also try to use --named arg and specify the command parameters' names.

Like for example:
$bitcoin-cli --named verifychain checklevel=1 nblocks=0
member
Activity: 85
Merit: 25
May 24, 2024, 12:00:44 AM
#1
Running on Ubuntu not sure how to pass parameters to the bitcoin-cli -verifychain command.  Works fine with curl or programmatic interface, but not sure how to just type it in at the prompt and have it work. 
Code:
$bitcoin-cli verifychain 
I see it takes two parameters which I would like to pass in on the command line.
Jump to: