Guest User

Untitled

a guest
Jan 26th, 2019
260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.11 KB | None | 0 0
  1. # Install Bitcoin Core
  2.  
  3. ## Get PPA
  4.  
  5. ```
  6. sudo add-apt-repository ppa:bitcoin/bitcoin
  7. // PRESS ENTER TO CONTINUE
  8. sudo apt update && sudo apt install bitcoind
  9. // PRESS Y TO CONTINUE
  10. ```
  11.  
  12. ## Setup Dirs
  13.  
  14. ```
  15. mkdir /blockchain/.bitcoin && mkdir /blockchain/.bitcoin/data && mkdir ~/.bitcoin
  16. ```
  17.  
  18. Edit bitcoin.conf
  19.  
  20. ```
  21. emacs ~/.bitcoin/bitcoin.conf
  22.  
  23. addnode= // add nodes, each on a new line
  24. assumevalid= // plug in the current best block hash
  25. daemon=1
  26. datadir=/blockchain/.bitcoin/data
  27. dbcache=3000 // MB of RAM to use, don't set to more than like 50% of the available memory
  28. disablewallet=1
  29. listen=0
  30. maxmempool=100 // Set higher if there is available memory
  31. maxuploadtarget=1000
  32. nopeerbloomfilters=1
  33. peerbloomfilters=0
  34. permitbaremultisig=0
  35. rpcpassword= // make a strong password
  36. rpcuser=bitcoinrpc
  37. server=1
  38. testnet=1 // Set as applicable
  39. zmqpubrawblock=tcp://127.0.0.1:28332
  40. zmqpubrawtx=tcp://127.0.0.1:28333
  41. ```
  42.  
  43. ## Tor Config
  44.  
  45. ```
  46. sudo emacs /etc/tor/torrc
  47.  
  48. ControlPort 9051
  49. CookieAuthentication 1
  50. CookieAuthFileGroupReadable 1
  51.  
  52. sudo service tor restart
  53. ```
  54.  
  55. Adjust addnode as necessary. Below are mainnet onion peers.
  56.  
  57. ```
  58. emacs ~/.bitcoin/bitcoin.conf
  59.  
  60. addnode=gyn2vguc35viks2b.onion
  61. addnode=kvd44sw7skb5folw.onion
  62. addnode=nkf5e6b7pl4jfd4a.onion
  63. addnode=yu7sezmixhmyljn4.onion
  64. addnode=3ffk7iumtx3cegbi.onion
  65. addnode=3nmbbakinewlgdln.onion
  66. addnode=4j77gihpokxu2kj4.onion
  67. addnode=546esc6botbjfbxb.onion
  68. addnode=5at7sq5nm76xijkd.onion
  69. addnode=77mx2jsxaoyesz2p.onion
  70. addnode=7g7j54btiaxhtsiy.onion
  71. addnode=a6obdgzn67l7exu3.onion
  72. addnode=ab64h7olpl7qpxci.onion
  73. addnode=am2a4rahltfuxz6l.onion
  74. addnode=azuxls4ihrr2mep7.onion
  75. addnode=bitcoin7bi4op7wb.onion
  76. addnode=bitcoinostk4e4re.onion
  77. addnode=bk7yp6epnmcllq72.onion
  78. addnode=bmutjfrj5btseddb.onion
  79. addnode=ceeji4qpfs3ms3zc.onion
  80. addnode=clexmzqio7yhdao4.onion
  81. addnode=gb5ypqt63du3wfhn.onion
  82. addnode=h2vlpudzphzqxutd.onion
  83.  
  84. onlynet=onion
  85. proxy=127.0.0.1:9050
  86. ```
  87.  
  88. ## Start Bitcoin Core
  89.  
  90. ```
  91. bitcoind
  92. ```
  93.  
  94. ## Create Symlink to Logs
  95.  
  96. ```
  97. // If on mainnet:
  98. ln -s /blockchain/.bitcoin/data/debug.log ~/bitcoind-mainnet.log
  99.  
  100. // If on testnet:
  101. ln -s /blockchain/.bitcoin/data/testnet3/debug.log ~/bitcoind-testnet.log
  102. ```
Add Comment
Please, Sign In to add comment