Guest User

Untitled

a guest
Oct 30th, 2017
446
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.07 KB | None | 0 0
  1. pine@pine64:~$ crontab -e
  2.  
  3. # m h dom mon dow command
  4.  
  5. @reboot /usr/local/bin/bitcoind &
  6.  
  7. pine@pine64:~$ cat .bitcoin/bitcoin.conf
  8. ##
  9. ## bitcoin.conf configuration file. Lines beginning with # are comments.
  10. ##
  11.  
  12. # Network-related settings:
  13.  
  14. # Run on the test network instead of the real bitcoin network.
  15. #testnet=0
  16.  
  17. # Run a regression test network
  18. #regtest=0
  19.  
  20. # Connect via a SOCKS5 proxy
  21. #proxy=127.0.0.1:9050
  22.  
  23. # Bind to given address and always listen on it. Use [host]:port notation for IPv6
  24. #bind=<addr>
  25.  
  26. # Bind to given address and whitelist peers connecting to it. Use [host]:port notation for IPv6
  27. #whitebind=<addr>
  28.  
  29. ##############################################################
  30. ## Quick Primer on addnode vs connect ##
  31. ## Let's say for instance you use addnode=4.2.2.4 ##
  32. ## addnode will connect you to and tell you about the ##
  33. ## nodes connected to 4.2.2.4. In addition it will tell ##
  34. ## the other nodes connected to it that you exist so ##
  35. ## they can connect to you. ##
  36. ## connect will not do the above when you 'connect' to it. ##
  37. ## It will *only* connect you to 4.2.2.4 and no one else.##
  38. ## ##
  39. ## So if you're behind a firewall, or have other problems ##
  40. ## finding nodes, add some using 'addnode'. ##
  41. ## ##
  42. ## If you want to stay private, use 'connect' to only ##
  43. ## connect to "trusted" nodes. ##
  44. ## ##
  45. ## If you run multiple nodes on a LAN, there's no need for ##
  46. ## all of them to open lots of connections. Instead ##
  47. ## 'connect' them all to one node that is port forwarded ##
  48. ## and has lots of connections. ##
  49. ## Thanks goes to [Noodle] on Freenode. ##
  50. ##############################################################
  51.  
  52. # Use as many addnode= settings as you like to connect to specific peers
  53. #addnode=69.164.218.197
  54. #addnode=10.0.0.2:8333
  55.  
  56. # Alternatively use as many connect= settings as you like to connect ONLY to specific peers
  57. #connect=69.164.218.197
  58. #connect=10.0.0.1:8333
  59.  
  60. # Listening mode, enabled by default except when 'connect' is being used
  61. #listen=1
  62.  
  63. # Maximum number of inbound+outbound connections.
  64. #maxconnections=
  65.  
  66. #
  67. # JSON-RPC options (for controlling a running Bitcoin/bitcoind process)
  68. #
  69.  
  70. # server=1 tells Bitcoin-Qt and bitcoind to accept JSON-RPC commands
  71. #server=0
  72.  
  73. # Bind to given address to listen for JSON-RPC connections. Use [host]:port notation for IPv6.
  74. # This option can be specified multiple times (default: bind to all interfaces)
  75. #rpcbind=<addr>
  76.  
  77. # If no rpcpassword is set, rpc cookie auth is sought. The default `-rpccookiefile` name
  78. # is .cookie and found in the `-datadir` being used for bitcoind. This option is typically used
  79. # when the server and client are run as the same user.
  80. #
  81. # If not, you must set rpcuser and rpcpassword to secure the JSON-RPC api. The first
  82. # method(DEPRECATED) is to set this pair for the server and client:
  83. #rpcuser=Ulysseys
  84. #rpcpassword=YourSuperGreatPasswordNumber_DO_NOT_USE_THIS_OR_YOU_WILL_GET_ROBBED_385593
  85. #
  86. # The second method `rpcauth` can be added to server startup argument. It is set at initialization time
  87. # using the output from the script in share/rpcuser/rpcuser.py after providing a username:
  88. #
  89. # ./share/rpcuser/rpcuser.py alice
  90. # String to be appended to bitcoin.conf:
  91. # rpcauth=alice:f7efda5c189b999524f151318c0c86$d5b51b3beffbc02b724e5d095828e0bc8b2456e9ac8757ae3211a5d9b16a22ae
  92. # Your password:
  93. # DONT_USE_THIS_YOU_WILL_GET_ROBBED_8ak1gI25KFTvjovL3gAM967mies3E=
  94. #
  95. # On client-side, you add the normal user/password pair to send commands:
  96. #rpcuser=alice
  97. #rpcpassword=DONT_USE_THIS_YOU_WILL_GET_ROBBED_8ak1gI25KFTvjovL3gAM967mies3E=
  98. #
  99. # You can even add multiple entries of these to the server conf file, and client can use any of them:
  100. # rpcauth=bob:b2dd077cb54591a2f3139e69a897ac$4e71f08d48b4347cf8eff3815c0e25ae2e9a4340474079f55705f40574f4ec99
  101.  
  102. # How many seconds bitcoin will wait for a complete RPC HTTP request.
  103. # after the HTTP connection is established.
  104. #rpcclienttimeout=30
  105.  
  106. # By default, only RPC connections from localhost are allowed.
  107. # Specify as many rpcallowip= settings as you like to allow connections from other hosts,
  108. # either as a single IPv4/IPv6 or with a subnet specification.
  109.  
  110. # NOTE: opening up the RPC port to hosts outside your local trusted network is NOT RECOMMENDED,
  111. # because the rpcpassword is transmitted over the network unencrypted.
  112.  
  113. # server=1 tells Bitcoin-Qt to accept JSON-RPC commands.
  114. # it is also read by bitcoind to determine if RPC should be enabled
  115. #rpcallowip=10.1.1.34/255.255.255.0
  116. #rpcallowip=1.2.3.4/24
  117. #rpcallowip=2001:db8:85a3:0:0:8a2e:370:7334/96
  118.  
  119. # Listen for RPC connections on this TCP port:
  120. #rpcport=8332
  121.  
  122. # You can use Bitcoin or bitcoind to send commands to Bitcoin/bitcoind
  123. # running on another host using this option:
  124. #rpcconnect=127.0.0.1
  125.  
  126. # Create transactions that have enough fees so they are likely to begin confirmation within n blocks (default: 6).
  127. # This setting is over-ridden by the -paytxfee option.
  128. #txconfirmtarget=n
  129.  
  130. # Miscellaneous options
  131.  
  132. # Pre-generate this many public/private key pairs, so wallet backups will be valid for
  133. # both prior transactions and several dozen future transactions.
  134. #keypool=100
  135.  
  136. # Pay an optional transaction fee every time you send bitcoins. Transactions with fees
  137. # are more likely than free transactions to be included in generated blocks, so may
  138. # be validated sooner.
  139. #paytxfee=0.00
  140.  
  141. # Enable pruning to reduce storage requirements by deleting old blocks.
  142. # This mode is incompatible with -txindex and -rescan.
  143. # 0 = default (no pruning).
  144. # 1 = allows manual pruning via RPC.
  145. # >=550 = target to stay under in MiB.
  146. prune=1000
  147.  
  148. # User interface options
  149.  
  150. # Start Bitcoin minimized
  151. #min=1
  152.  
  153. # Minimize to the system tray
  154. #minimizetotray=1
  155.  
  156. pine@pine64:~$ bitcoin-cli getconnectioncount
  157. error: couldn't connect to server: unknown (code -1)
  158. (make sure server is running and you are connecting to the correct RPC port)
Add Comment
Please, Sign In to add comment