Bitcoin config file to setup bitcoin node in testnet network in ubuntu

1

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/

User97693321

Posted 2018-04-07T06:42:44.413

Reputation: 113

I have started the node sync:User97693321 2018-04-08T05:57:26.773

Answers

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

User97693321

Posted 2018-04-07T06:42:44.413

Reputation: 113

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

Adam

Posted 2018-04-07T06:42:44.413

Reputation: 3 215

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?User97693321 2018-04-07T16:06:32.363

1If you want to use RPC remotely you should set here your IP range or 0.0.0.0/0 for any IP.Adam 2018-04-07T17:04:50.760

1

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.

sr-gi

Posted 2018-04-07T06:42:44.413

Reputation: 2 382