Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Install Bitcoin Core
- ## Get PPA
- ```
- sudo add-apt-repository ppa:bitcoin/bitcoin
- // PRESS ENTER TO CONTINUE
- sudo apt update && sudo apt install bitcoind
- // PRESS Y TO CONTINUE
- ```
- ## Setup Dirs
- ```
- mkdir /blockchain/.bitcoin && mkdir /blockchain/.bitcoin/data && mkdir ~/.bitcoin
- ```
- Edit bitcoin.conf
- ```
- emacs ~/.bitcoin/bitcoin.conf
- addnode= // add nodes, each on a new line
- assumevalid= // plug in the current best block hash
- daemon=1
- datadir=/blockchain/.bitcoin/data
- dbcache=3000 // MB of RAM to use, don't set to more than like 50% of the available memory
- disablewallet=1
- listen=0
- maxmempool=100 // Set higher if there is available memory
- maxuploadtarget=1000
- nopeerbloomfilters=1
- peerbloomfilters=0
- permitbaremultisig=0
- rpcpassword= // make a strong password
- rpcuser=bitcoinrpc
- server=1
- testnet=1 // Set as applicable
- zmqpubrawblock=tcp://127.0.0.1:28332
- zmqpubrawtx=tcp://127.0.0.1:28333
- ```
- ## Tor Config
- ```
- sudo emacs /etc/tor/torrc
- ControlPort 9051
- CookieAuthentication 1
- CookieAuthFileGroupReadable 1
- sudo service tor restart
- ```
- Adjust addnode as necessary. Below are mainnet onion peers.
- ```
- emacs ~/.bitcoin/bitcoin.conf
- addnode=gyn2vguc35viks2b.onion
- addnode=kvd44sw7skb5folw.onion
- addnode=nkf5e6b7pl4jfd4a.onion
- addnode=yu7sezmixhmyljn4.onion
- addnode=3ffk7iumtx3cegbi.onion
- addnode=3nmbbakinewlgdln.onion
- addnode=4j77gihpokxu2kj4.onion
- addnode=546esc6botbjfbxb.onion
- addnode=5at7sq5nm76xijkd.onion
- addnode=77mx2jsxaoyesz2p.onion
- addnode=7g7j54btiaxhtsiy.onion
- addnode=a6obdgzn67l7exu3.onion
- addnode=ab64h7olpl7qpxci.onion
- addnode=am2a4rahltfuxz6l.onion
- addnode=azuxls4ihrr2mep7.onion
- addnode=bitcoin7bi4op7wb.onion
- addnode=bitcoinostk4e4re.onion
- addnode=bk7yp6epnmcllq72.onion
- addnode=bmutjfrj5btseddb.onion
- addnode=ceeji4qpfs3ms3zc.onion
- addnode=clexmzqio7yhdao4.onion
- addnode=gb5ypqt63du3wfhn.onion
- addnode=h2vlpudzphzqxutd.onion
- onlynet=onion
- proxy=127.0.0.1:9050
- ```
- ## Start Bitcoin Core
- ```
- bitcoind
- ```
- ## Create Symlink to Logs
- ```
- // If on mainnet:
- ln -s /blockchain/.bitcoin/data/debug.log ~/bitcoind-mainnet.log
- // If on testnet:
- ln -s /blockchain/.bitcoin/data/testnet3/debug.log ~/bitcoind-testnet.log
- ```
Add Comment
Please, Sign In to add comment