Skip to content

Instantly share code, notes, and snippets.

@narodnik
Created April 8, 2020 18:18
Show Gist options
  • Save narodnik/2687348e9b47cd9acfd40b36ea496057 to your computer and use it in GitHub Desktop.
Save narodnik/2687348e9b47cd9acfd40b36ea496057 to your computer and use it in GitHub Desktop.
# Libbitcoin Server configuration file
[log]
# The debug log file path, defaults to 'debug.log'.
debug_file = debug.log
# The error log file path, defaults to 'error.log'.
error_file = error.log
# The log archive directory, defaults to 'archive'.
archive_directory = archive
# The size at which a log is archived, defaults to 10000000 (0 disables).
rotation_size = 10000000
# The minimum free space required in the archive directory, defaults to 0.
minimum_free_space = 0
# The maximum combined size of archived logs, defaults to 0 (maximum).
maximum_archive_size = 0
# The maximum number of logs to archive, defaults to 0 (maximum).
maximum_archive_files = 0
# The address of the statistics collection server, defaults to none.
statistics_server = 0.0.0.0:0
# Enable verbose logging, defaults to false.
verbose = false
[bitcoin]
# The difficulty retargeting factor, defaults to 4.
retargeting_factor = 4
# The difficulty retargeting period, defaults to 1209600.
retargeting_interval_seconds = 1209600
# The target block period, defaults to 600.
block_spacing_seconds = 600
# The future timestamp allowance, defaults to 7200.
timestamp_limit_seconds = 7200
# The proof of work limit, defaults to 486604799.
proof_of_work_limit = 486604799
# The initial block subsidy, defaults to 50.
initial_block_subsidy_bitcoin = 50
# The subsidy halving period, defaults to 210000.
subsidy_interval = 210000
# The genesis block, defaults to 0100000000000000000000000000000000000000000000000000000000000000000000003ba3edfd7a7b12b27ac72c3e67768f617fc81bc3888a51323a9fb8aa4b1e5e4a29ab5f49ffff001d1dac2b7c0101000000010000000000000000000000000000000000000000000000000000000000000000ffffffff4d04ffff001d0104455468652054696d65732030332f4a616e2f32303039204368616e63656c6c6f72206f6e206272696e6b206f66207365636f6e64206261696c6f757420666f722062616e6b73ffffffff0100f2052a01000000434104678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5fac00000000 (use 0100000000000000000000000000000000000000000000000000000000000000000000003ba3edfd7a7b12b27ac72c3e67768f617fc81bc3888a51323a9fb8aa4b1e5e4adae5494dffff001d1aa4ae180101000000010000000000000000000000000000000000000000000000000000000000000000ffffffff4d04ffff001d0104455468652054696d65732030332f4a616e2f32303039204368616e63656c6c6f72206f6e206272696e6b206f66207365636f6e64206261696c6f757420666f722062616e6b73ffffffff0100f2052a01000000434104678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5fac00000000 for testnet).
genesis_block = 0100000000000000000000000000000000000000000000000000000000000000000000003ba3edfd7a7b12b27ac72c3e67768f617fc81bc3888a51323a9fb8aa4b1e5e4a29ab5f49ffff001d1dac2b7c0101000000010000000000000000000000000000000000000000000000000000000000000000ffffffff4d04ffff001d0104455468652054696d65732030332f4a616e2f32303039204368616e63656c6c6f72206f6e206272696e6b206f66207365636f6e64206261696c6f757420666f722062616e6b73ffffffff0100f2052a01000000434104678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5fac00000000
# The number of new version blocks required for bip34 style soft fork activation, defaults to 750 (use 51 for testnet).
activation_threshold = 750
# The number of new version blocks required for bip34 style soft fork enforcement, defaults to 950 (use 75 for testnet).
enforcement_threshold = 950
# The number of blocks considered for bip34 style soft fork activation, defaults to 1000 (use 100 for testnet).
activation_sample = 1000
# The block height to freeze the bip65 softfork as in bip90, defaults to 388381 (use 581885 for testnet).
bip65_freeze = 388381
# The block height to freeze the bip66 softfork as in bip90, defaults to 363725 (use 330776 for testnet).
bip66_freeze = 363725
# The block height to freeze the bip34 softfork as in bip90, defaults to 227931 (use 21111 for testnet).
bip34_freeze = 227931
# The activation time for bip16 in unix time, defaults to 1333238400 (use 1329264000 for testnet).
bip16_activation_time = 1333238400
# The hash:height checkpoint for bip34 activation, defaults to 000000000000024b89b42a942fe0d9fea3bb44ab7bd1b19115dd6a759c0808b8:227931 (use 0000000023b3a96d3484e5abb3755c413e7d41500f8e2a5c3f0dd01299cd8ef8:21111 for testnet).
bip34_active_checkpoint = 000000000000024b89b42a942fe0d9fea3bb44ab7bd1b19115dd6a759c0808b8:227931
# The hash:height checkpoint for bip9 bit0 activation, defaults to 000000000000000004a1b34462cb8aeebd5799177f7a29cf28f2d1961716b5b5:419328 (use 00000000025e930139bac5c6c31a403776da130831ab85be56578f3fa75369bb:770112 for testnet).
bip9_bit0_active_checkpoint = 000000000000000004a1b34462cb8aeebd5799177f7a29cf28f2d1961716b5b5:419328
# The hash:height checkpoint for bip9 bit1 activation, defaults to 0000000000000000001c8018d9cb3b742ef25114f27563e3fc4a1902167f9893:481824 (use 00000000002b980fcd729daaa248fd9316a5200e9b367f4ff2c42453e84201ca:834624 for testnet).
bip9_bit1_active_checkpoint = 0000000000000000001c8018d9cb3b742ef25114f27563e3fc4a1902167f9893:481824
[network]
# The minimum number of threads in the network threadpool, defaults to 0 (physical cores).
threads = 0
# The maximum network protocol version, defaults to 70013.
protocol_maximum = 70013
# The minimum network protocol version, defaults to 31402.
protocol_minimum = 31402
# The services exposed by network connections, defaults to 9 (full node, witness).
services = 9
# The advertised services that cause a peer to be dropped, defaults to 176.
invalid_services = 176
# The magic number for message headers, defaults to 3652501241 (use 118034699 for testnet).
identifier = 3652501241
# Validate the checksum of network messages, defaults to false.
validate_checksum = false
# The port for incoming connections, defaults to 8333 (use 18333 for testnet).
inbound_port = 8333
# The target number of incoming network connections, defaults to 100.
inbound_connections = 100
# The target number of outgoing network connections, defaults to 8.
outbound_connections = 8
# The attempt limit for manual connection establishment, defaults to 0 (forever).
manual_attempt_limit = 0
# The number of concurrent attempts to establish one connection, defaults to 5.
connect_batch_size = 5
# The time limit for connection establishment, defaults to 5.
connect_timeout_seconds = 5
# The time limit to complete the connection handshake, defaults to 30.
channel_handshake_seconds = 30
# The time limit for obtaining seed addresses, defaults to 30.
channel_germination_seconds = 30
# The time between ping messages, defaults to 5.
channel_heartbeat_minutes = 5
# The inactivity time limit for any connection, defaults to 30.
channel_inactivity_minutes = 30
# The age limit for any connection, defaults to 1440.
channel_expiration_minutes = 1440
# The maximum number of peer hosts in the pool, defaults to 10000.
host_pool_capacity = 10000
# The peer hosts cache file path, defaults to 'hosts.cache'.
hosts_file = hosts.cache
# The advertised public address of this node, defaults to none.
self = 0.0.0.0:0
# IP address to disallow as a peer, multiple entries allowed.
#blacklist = 127.0.0.1
# A persistent peer node, multiple entries allowed.
#peer = mainnet.libbitcoin.net:8333
#peer = testnet.libbitcoin.net:18333
# A seed node for initializing the host pool, multiple entries allowed, defaults shown.
seed = mainnet1.libbitcoin.net:8333
seed = mainnet2.libbitcoin.net:8333
#seed = mainnet3.libbitcoin.net:8333
#seed = mainnet4.libbitcoin.net:8333
# Testnet seed nodes.
#seed = testnet1.libbitcoin.net:18333
#seed = testnet2.libbitcoin.net:18333
#seed = testnet3.libbitcoin.net:18333
#seed = testnet4.libbitcoin.net:18333
[database]
# The blockchain database directory, defaults to 'blockchain'.
directory = blockchain
# Flush each write to disk, defaults to false.
flush_writes = false
# The maximum number of entries in the unspent outputs cache, defaults to 10000.
cache_capacity = 10000
# Full database files increase by this percentage, defaults to 5.
file_growth_rate = 5
# Block hash table size, defaults to 650000.
block_table_buckets = 650000
# Transaction hash table size, defaults to 110000000.
transaction_table_buckets = 110000000
# Payments hash table size, defaults to 107000000.
payment_table_buckets = 107000000
# Block table minimum file size, defaults to 80000000 (use 42 for testnet).
block_table_size = 80000000
# Candidate index minimum file size, defaults to 3000000 (use 42 for testnet).
candidate_index_size = 3000000
# Confirmed index minimum file size, defaults to 3000000 (use 42 for testnet).
confirmed_index_size = 3000000
# Transaction index minimum file size, defaults to 3000000000 (use 42 for testnet).
transaction_index_size = 3000000000
# Transaction table minimum file size, defaults to 220000000000 (use 42 for testnet).
transaction_table_size = 220000000000
# Payments index minimum file size, defaults to 100000000000 (use 42 for testnet).
payment_index_size = 100000000000
# Payments table minimum file size, defaults to 100000000 (use 42 for testnet).
payment_table_size = 100000000
# Neutrino filter hash table size, defaults to 650000.
neutrino_filter_table_buckets = 650000
# Neutrino filter index minimum file size, defaults to 80000000 (use 42 for testnet).
neutrino_filter_table_size = 80000000
[blockchain]
# The number of cores dedicated to block validation, defaults to 0 (physical cores).
cores = 0
# Use high thread priority for block validation, defaults to true.
priority = true
# Use libconsensus for script validation if integrated, defaults to false.
use_libconsensus = false
# The maximum reorganization depth, defaults to 0 (unlimited).
reorganization_limit = 0
# The maximum number of blocks to buffer, defaults to 0 (none).
block_buffer_limit = 0
# Enable neutrino filter storage and related compact filter query response, defaults to false.
bip158 = false
# A hash:height checkpoint, multiple entries allowed, defaults shown.
checkpoint = 000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f:0
checkpoint = 0000000069e244f73d78e8fd29ba2fd2ed618bd6fa2ee92559f542fdb26e7c1d:11111
checkpoint = 000000002dd5588a74784eaa7ab0507a18ad16a236e7b1ce69f00d7ddfb5d0a6:33333
checkpoint = 00000000001e1b4903550a0b96e9a9405c8a95f387162e4944e8d9fbe501cd6a:68555
checkpoint = 00000000006a49b14bcf27462068f1264c961f11fa2e0eddd2be0791e1d4124a:70567
checkpoint = 0000000000573993a3c9e41ce34471c079dcf5f52a0e824a81e7f953b8661a20:74000
checkpoint = 00000000000291ce28027faea320c8d2b054b2e0fe44a773f3eefb151d6bdc97:105000
checkpoint = 000000000000774a7f8a7a12dc906ddb9e17e75d684f15e00f8767f9e8f36553:118000
checkpoint = 00000000000005b12ffd4cd315cd34ffd4a594f430ac814c91184a0d42d2b0fe:134444
checkpoint = 000000000000033b512028abb90e1626d8b346fd0ed598ac0a3c371138dce2bd:140700
checkpoint = 000000000000099e61ea72015e79632f216fe6cb33d7899acb35b75c8303b763:168000
checkpoint = 000000000000059f452a5f7340de6682a977387c17010ff6e6c3bd83ca8b1317:193000
checkpoint = 000000000000048b95347e83192f69cf0366076336c639f9b7228e9ba171342e:210000
checkpoint = 00000000000001b4f4b433e81ee46494af945cf96014816a4e2370f11b23df4e:216116
checkpoint = 00000000000001c108384350f74090433e7fcf79a606b8e797f065b130575932:225430
checkpoint = 000000000000003887df1f29024b06fc2200b55f8af8f35453d7be294df2d214:250000
checkpoint = 0000000000000001ae8c72a0b0c301f67e3afca10e819efa9041e458e9bd7e40:279000
checkpoint = 00000000000000004d9b4ef50f0f9d686fd69db2e03af35a100370c64632a983:295000
# Testnet checkpoints.
#checkpoint = 000000000933ea01ad0ee984209779baaec3ced90fa3f408719526f8d77f4943:0
#checkpoint = 00000000009e2958c15ff9290d571bf9459e93b19765c6801ddeccadbb160a1e:100000
#checkpoint = 0000000000287bffd321963ef05feab753ebe274e1d78b2fd4e2bfe9ad3aa6f2:200000
#checkpoint = 000000000000226f7618566e70a2b5e020e29579b46743f05348427239bf41a1:300000
#checkpoint = 000000000598cbbb1e79057b79eef828c495d4fc31050e6b179c57d07d00367c:400000
#checkpoint = 000000000001a7c0aaa2630fbb2c0e476aafffc60f82177375b2aaa22209f606:500000
#checkpoint = 000000000000624f06c69d3a9fe8d25e0a9030569128d63ad1b704bbb3059a16:600000
[fork]
# Require difficult blocks, defaults to true (use false for testnet).
difficult = true
# Retarget difficulty, defaults to true (use false for regtest).
retarget = true
# Add pay-to-script-hash processing, defaults to true (soft fork).
bip16 = true
# Disallow collision of unspent transaction hashes, defaults to true (soft fork).
bip30 = true
# Require coinbase input includes block height, defaults to true (soft fork).
bip34 = true
# Finite monetary supply, defaults to true (soft fork).
bip42 = true
# Require strict signature encoding, defaults to true (soft fork).
bip66 = true
# Add check-locktime-verify op code, defaults to true (soft fork).
bip65 = true
# Assume bip34, bip65, and bip66 activation if enabled, defaults to true (hard fork).
bip90 = true
# Add relative locktime enforcement, defaults to true (soft fork).
bip68 = true
# Add check-sequence-verify op code, defaults to true (soft fork).
bip112 = true
# Use median time past for locktime, defaults to true (soft fork).
bip113 = true
# Segregated witness consensus layer, defaults to true (soft fork).
bip141 = true
# Version 0 transaction digest, defaults to true (soft fork).
bip143 = true
# Prevent dummy value malleability, defaults to true (soft fork).
bip147 = true
# Fix time warp bug, defaults to false (hard fork).
time_warp_patch = false
# Fix target overflow for very low difficulty, defaults to false (hard fork).
retarget_overflow_patch = false
# Use scrypt hashing for proof of work, defaults to false (hard fork).
scrypt_proof_of_work = false
[node]
# The response rate standard deviation below which a peer is dropped, defaults to 1.5.
maximum_deviation = 1.5
# The maximum time to wait for a requested block, defaults to 5.
block_latency_seconds = 5
# Disable relay when top block age exceeds, defaults to 24 (0 disables).
notify_limit_hours = 24
# The minimum fee per byte, cumulative for conflicts, defaults to 1.
byte_fee_satoshis = 1
# The minimum fee per sigop, additional to byte fee, defaults to 100.
sigop_fee_satoshis = 100
# The minimum output value, defaults to 500.
minimum_output_satoshis = 500
# Request that peers relay transactions, defaults to true.
relay_transactions = true
# Request transactions on each channel start, defaults to false.
refresh_transactions = false
[server]
# Enable payment indexing, defaults to true.
index_payments = true
# Drop messages at this outgoing backlog level, defaults to 100.
send_high_water = 100
# Drop messages at this incoming backlog level, defaults to 100.
receive_high_water = 100
# The time limit to complete the connection handshake, defaults to 30.
handshake_seconds = 30
# Disable public endpoints, defaults to false.
secure_only = false
# The number of query worker threads per endpoint, defaults to 1 (0 disables service).
query_workers = 1
# The maximum number of query subscriptions, defaults to 1000 (0 disables subscribe).
subscription_limit = 1000
# The query subscription expiration time, defaults to 10 (0 disables expiration).
subscription_expiration_minutes = 10
# The heartbeat service interval, defaults to 5 (0 disables service).
heartbeat_service_seconds = 5
# Enable the block publishing service, defaults to true.
block_service_enabled = true
# Enable the transaction publishing service, defaults to true.
transaction_service_enabled = true
# Allowed client IP address, multiple entries allowed.
#client_address = 127.0.0.1
# Blocked client IP address, multiple entries allowed.
#blacklist = 127.0.0.1
[websockets]
# The secure query websocket endpoint, defaults to 'tcp://*:9061'.
secure_query_endpoint = tcp://*:9061
# The secure heartbeat websocket endpoint, defaults to 'tcp://*:9062'.
secure_heartbeat_endpoint = tcp://*:9062
# The secure block publishing websocket endpoint, defaults to 'tcp://*:9063'.
secure_block_endpoint = tcp://*:9063
# The secure transaction publishing websocket endpoint, defaults to 'tcp://*:9064'.
secure_transaction_endpoint = tcp://*:9064
# The public query websocket endpoint, defaults to 'tcp://*:9071'.
public_query_endpoint = tcp://*:9071
# The public heartbeat websocket endpoint, defaults to 'tcp://*:9072'.
public_heartbeat_endpoint = tcp://*:9072
# The public block publishing websocket endpoint, defaults to 'tcp://*:9073'.
public_block_endpoint = tcp://*:9073
# The public transaction publishing websocket endpoint, defaults to 'tcp://*:9074'.
public_transaction_endpoint = tcp://*:9074
# Enable websocket endpoints, defaults to true.
enabled = true
# The optional directory for serving files via HTTP/S, defaults to '' (unused).
#root = web
# The SSL certificate authority file, defaults to '' (unused), enables secure endpoints.
#ca_certificate = secure/ca.pem
# The SSL private key file, defaults to '' (unused), enables secure endpoints.
#server_private_key = secure/key.pem
# The SSL certificate file, defaults to '' (unused), enables secure endpoints.
#server_certificate = secure/server.pem
# Allowed websocket origin, multiple entries allowed.
origin = http://localhost:9071
origin = http://localhost:9072
origin = http://localhost:9073
origin = http://localhost:9074
origin = https://localhost:9061
origin = https://localhost:9062
origin = https://localhost:9063
origin = https://localhost:9064
[zeromq]
# The secure query zeromq endpoint, defaults to 'tcp://*:9081'.
secure_query_endpoint = tcp://*:9081
# The secure heartbeat zeromq endpoint, defaults to 'tcp://*:9082'.
secure_heartbeat_endpoint = tcp://*:9082
# The secure block publishing zeromq endpoint, defaults to 'tcp://*:9083'.
secure_block_endpoint = tcp://*:9083
# The secure transaction publishing zeromq endpoint, defaults to 'tcp://*:9084'.
secure_transaction_endpoint = tcp://*:9084
# The public query zeromq endpoint, defaults to 'tcp://*:9091'.
public_query_endpoint = tcp://*:9091
# The public heartbeat zeromq endpoint, defaults to 'tcp://*:9092'.
public_heartbeat_endpoint = tcp://*:9092
# The public block publishing zeromq endpoint, defaults to 'tcp://*:9093'.
public_block_endpoint = tcp://*:9093
# The public transaction publishing zeromq endpoint, defaults to 'tcp://*:9094'.
public_transaction_endpoint = tcp://*:9094
# The Z85-encoded private key of the server, enables secure endpoints.
#server_private_key =
# Allowed Z85-encoded public key of the client, multiple entries allowed.
#client_public_key =
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment