2

I am new to blockchain, I want to setup my node in testnet network in my ubuntu machine.

I am using this below mentioned bitcoin.conf file. Is this the correct format to sync the node faster? Or I need to do the changes in this config file.

testnet=1
dnsseed=0
upnp=0
setgenerate=1
blocksonly=1

port=12000
rpcport=5000

server=1
prune=1000

rpcallowip=0.0.0.0/0

rpcuser=someuser
rpcpassword=somepass

I am referring this link to setup my bitcoin node https://www.codeooze.com/blockchain/bitcoind-running-in-docker/

1
  • I have started the node sync: Apr 8, 2018 at 5:57

4 Answers 4

2

In general, you can use Lopp's Bitcoin Core config file generator to set up your Bitcoin Core config files. Parameters are collected in groups by topic (e.g: Mining, Networking, ...). Moreover, each parameter contains a description of what it is used for and what is it's default value.

2

Meanwhile...

addnode needs to be in the [test] section for testnet. So it's

[test]
addnode=104.237.131.138
addnode=151.80.205.132
addnode=192.155.82.123
addnode=74.220.255.190
addnode=80.100.203.151

now.

1

To sync faster your config should be like that:

testnet=1
blocksonly=1
rpcport=5000
server=1
listen=0
prune=1000 # this has no effect during syncing 
dbcache=16000 # will take too much memory
rpcallowip=0.0.0.0/0
rpcuser=someuser
rpcpassword=somepass
2
  • Thanks @Adam, I will try this. And I want to know should we use rpcallowip=0.0.0.0/0 or we can remove from the config file because this is 0 only? Apr 7, 2018 at 16:06
  • 1
    If you want to use RPC remotely you should set here your IP range or 0.0.0.0/0 for any IP.
    – Adam
    Apr 7, 2018 at 17:04
0

To sync faster I have updated my bitcoin.conf file by adding the node addresses. My latest config file is similar to this:

testnet=1
regtest=0
dnsseed=0
upnp=0
setgenerate=1
blocksonly=1

server=1

addnode=104.237.131.138
addnode=151.80.205.132
addnode=192.155.82.123
addnode=74.220.255.190
addnode=80.100.203.151

maxconnections=15
minrelaytxfee=0.0001
maxmempool=200
maxreceiverbuffer=2500
maxsendbuffer=500
dbcache=16000

rpcallowip=0.0.0.0/0
rpcuser=someuser
rpcpassword=somepass
1
  • remember when using testnet rpc config needs to go under [test] section.
    – pseudozach
    Jul 6, 2021 at 18:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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