How do I prevent Bitcoin from synchronizing? 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?
bitcoin-cli invalidateblock `bitcoin-cli getbestblockhash`


or

bitcoind -maxconnections=0