WIP bitcoind config

This commit is contained in:
2020-01-21 15:18:10 -05:00
parent 47105b2a1c
commit 09527e693b
5 changed files with 151 additions and 7 deletions

View File

@@ -0,0 +1,69 @@
# Network-related settings:
testnet=0
irc=1
dnsseed=1
upnp=1
checkblocks=10
checklevel=1
txindex=1
whitelist=127.0.0.1
# Maximum number of inbound+outbound connections.
#maxconnections=
listen=1
# JSON-RPC options (for controlling a running Bitcoin/bitcoind process)
# server=1 tells Bitcoin to accept JSON-RPC commands.
server=1
# You must set rpcuser and rpcpassword to secure the JSON-RPC api
rpcuser=kosmos
rpcpassword=yunobuttcoin
# By default, only RPC connections from localhost are allowed. Specify
# as many rpcallowip= settings as you like to allow connections from
# other hosts (and you may use * as a wildcard character):
#rpcallowip=192.168.1.*
rpcallowip=127.0.0.1
# Listen for RPC connections on this TCP port:
rpcbind=127.0.0.1:8336
# Listen for P2P connections on this TCP port:
port=8335
# Use Secure Sockets Layer (also known as TLS or HTTPS) to communicate
# with Bitcoin -server or bitcoind
rpcssl=0
# OpenSSL settings used when rpcssl=1
#rpcsslciphers=TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH
# Miscellaneous options
# Set gen=1 to attempt to generate bitcoins
gen=0
# Use SSE instructions to try to generate bitcoins faster.
#4way=1
# Pre-generate this many public/private key pairs, so wallet backups will be valid for
# both prior transactions and several dozen future transactions.
#keypool=100
# Pay an optional transaction fee every time you send bitcoins. Transactions with fees
# are more likely than free transactions to be included in generated blocks, so may
# be validated sooner.
#paytxfee=0.00
# Allow direct connections for the 'pay via IP address' feature.
#allowreceivebyip=1
zmqpubrawblock=tcp://127.0.0.1:8337
zmqpubrawtx=tcp://127.0.0.1:8338

View File

@@ -0,0 +1,34 @@
##
## bitcoin.conf configuration file. Lines beginning with # are comments.
##
## Generated by Chef. Do not edit directly, or your changes will be overwritten
## during the next Chef run!
##
<% @conf.each do |key, value| %>
<%= "#{key}=#{value}" %>
<% end %>
<% if @mainnet_conf %>
# Options only for mainnet
[main]
<% @mainnet_conf.each do |key, value| %>
<%= "#{key}=#{value}" %>
<% end %>
<% end %>
<% if @testnet_conf %>
# Options only for testnet
[test]
<% @testnet_conf.each do |key, value| %>
<%= "#{key}=#{value}" %>
<% end %>
<% end %>
<% if @regtest_conf %>
# Options only for regtest
[regtest]
<% @regtest_conf.each do |key, value| %>
<%= "#{key}=#{value}" %>
<% end %>
<% end %>