1

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.

3

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 -daemon i got Error: Cannot obtain a lock on data directory /home/pi/.bitcoin/regtest. Bitcoin Core is probably already running.. But when i typed bitcoin-cli getblockchaininfo, i got error: 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 May 13 '18 at 22:23
  • i was able to start correctly only with bitcoind -daemon – lch May 13 '18 at 22:24
1

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.