Version : Bitcoin Core 0.19.1
Description : i tried bitcoin-cli verifychain 4 630000
but after some time ( 1201s ) bitcioind log debug.info says socket sending timeout: 1201s
. Will it stop verifychain
command?
Version : Bitcoin Core 0.19.1
Description : i tried bitcoin-cli verifychain 4 630000
but after some time ( 1201s ) bitcioind log debug.info says socket sending timeout: 1201s
. Will it stop verifychain
command?
Some [1] RPCs might hold cs_main
for a long period of time. cs_main
may also be needed by the message handling thread (depending on what kind of data the other peer sent you). If it is needed, the thread will wait until the lock can be taken. During that time, no peer’s messages are handled, so they will be disconnected for not sending any data.
[1]
At least for flushing the utxoset:
dumptxoutset
gettxoutsetinfo
scantxoutset
For activating the chain:
invalidateblock
reconsiderblock
For walking the chain:
verifychain
Will it stop verifychain command?
No
Thank you for the inputs. Unfortunately bitcoind silently stopped after ~1 hours of verifychain command.
debug.info log:
0 Verifying last 630690 blocks at level 4
1 [0%]...socket sending timeout: 1201s
2 socket sending timeout: 1201s
3 socket sending timeout: 1201s
4 socket sending timeout: 1201s
5 socket sending timeout: 1201s
6 socket sending timeout: 1201s
7 [10%]...[20%]...[30%]...[40%]...[50%]...
after 50% bitcoind stopped with out any log. i’m having sufficient RAM(16G) and CPUs.
-dbcache=4000
. now trying without dbcache
and running verifychain
command again.
verifychain 4
is lacking documentation, but the memory requirements should be O(2*N)
, where N is the number of blocks to verify
even after turning off dbcache
bitcoind stopped after [50%].
bitcoin.conf file
0rpcuser=user
1rpcpassword=pass
2daemon=1
3txindex=1
4server=1
5rpcallowip=0.0.0.0/0
6rpcport=8332
Unable to resolve it due to lack of documentation. Closing.
Unable to resolve it due to lack of documentation. Closing.
This should be fixed and documented instead.
Documentation is here:
0 -checklevel=<n>
1 How thorough the block verification of -checkblocks is: level 0 reads
2 the blocks from disk, level 1 verifies block validity, level 2
3 verifies undo data, level 3 checks disconnection of tip blocks,
4 and level 4 tries to reconnect the blocks, each level includes
5 the checks of the previous levels (0-4, default: 3)
I think this can be copied as is to the RPC help
verifychain 4
is lacking documentation, but the memory requirements should beO(2*N)
, where N is the number of blocks to verify
Bitcoind not using swapspace after ram is full. How to tell bitcoind to use swapspace. Thank you.