I installed Bitcoin Full Node on Raspberry pi 3b+. Blockchain sync is dead slow because of less CPU. I Guess blockchain validation is time/CPU consuming thing. Is there a way to disable the validation and just download the chain? I understand the consequences. If my peers send wrong data, I will end up using wrong data. But I don't have an alternative. RPC calls are dead slow right now. I just need data to write some code.
2 Answers
It you just want to test your code with the Bitcoin Core RPC calls, you can use regtest mode by starting Bitcoin Core with -regtest. This mode sets up a private testing network so there is no need to sync the blockchain or connect to other peers unless you set up other peers to connect to. You can mine your own blocks in this mode too so blocks are produced when you want them.
- on using command
bitcoind -regtest -daemoni gotError: Cannot obtain a lock on data directory /home/pi/.bitcoin/regtest. Bitcoin Core is probably already running.. But when i typedbitcoin-cli getblockchaininfo, i goterror: Could not locate RPC credentials. No authentication cookie could be found, and RPC password is not set. See -rpcpassword and -stdinrpcpass. Configuration file: (/home/pi/.bitcoin/bitcoin.conf)lch– lch2018-05-13 22:23:53 +00:00Commented May 13, 2018 at 22:23 - i was able to start correctly only with
bitcoind -daemonlch– lch2018-05-13 22:24:50 +00:00Commented May 13, 2018 at 22:24
No. There is no option to disable the block validation.
What you might want to do is a testnet sync. The download and the validation should finish much quicker. Depending on your use case the testnet chain should have similar data. However you won't find mainnet transactions or blocks.
You can enable testnet by starting Bitcoin Core with the -testnet option or creating a bitcoin.conf with testnet=1.
- Someone could disable it in source code and recompile it.Vincent Alex– Vincent Alex2022-05-06 20:08:06 +00:00Commented May 6, 2022 at 20:08