3
1
I have a script that uses Bitcoin's RPC interface and takes a lot of CPU to run, and I don't want Bitcoin to be verifying blocks while I do it. Is there a config setting or an RPC call I can use to stop it from syncing?
3
1
I have a script that uses Bitcoin's RPC interface and takes a lot of CPU to run, and I don't want Bitcoin to be verifying blocks while I do it. Is there a config setting or an RPC call I can use to stop it from syncing?
7
bitcoin-cli invalidateblock `bitcoin-cli getbestblockhash`
or
bitcoind -maxconnections=0
Thanks for your answer! Can you tell me, how can I "undo" the
invalidateblockcommand so the sync will be continued? – Sergey Potekhin – 2018-10-23T22:58:27.2101
reconsiderblock <hash>– Anonymous – 2018-10-23T22:59:18.577Is invalidateblock still working? How much of a hack is this? Is there a less hacky way to do this already? Like a config entry? – nopara73 – 2019-01-31T10:41:47.117
It still works. – Anonymous – 2019-01-31T11:24:28.787