View in context in the libbitcoin Slack #general mirror.
[log]
path = {logdir}
[bitcoin]
# Regtest genesis block (hex-encoded)
genesis_block = {genesis_hex}
# Regtest proof of work limit (0x207fffff = 545259519)
proof_of_work_limit = 545259519
# Accept any valid chain (no minimum work requirement)
minimum_work = 0000000000000000000000000000000000000000000000000000000000000000
[forks]
# Regtest allows easy mining without real proof of work
difficult = false
[network]
# Regtest network magic (0xDAB5BFFA = 3669344250)
identifier = 3669344250
[inbound]
# Listen for P2P connections
bind = 127.0.0.1:{p2p_port}
connections = 10
enable_loopback = true
[outbound]
# Disable outbound connections to prevent contacting mainnet seeds
connections = 0
host_pool_capacity = 0
[database]
path = {datadir}
# Tiny regtest DB profile (avoid multi-GB prealloc).
header_buckets = 1
header_size = 1000
txs_buckets = 1
txs_size = 1000
tx_buckets = 1
tx_size = 1000
point_buckets = 1
point_size = 1000
strong_tx_buckets = 1
strong_tx_size = 1000
input_size = 1000
ins_size = 1000
output_size = 1000
outs_size = 1000
candidate_size = 1000
confirmed_size = 1000
duplicate_buckets = 1
duplicate_size = 100
prevout_buckets = 0
prevout_size = 1
validated_bk_buckets = 1
validated_bk_size = 1000
validated_tx_buckets = 1
validated_tx_size = 1000
address_buckets = 1
address_size = 1000
filter_bk_buckets = 0
filter_tx_buckets = 0
[node]
# Don't delay inbound peers waiting for "current" chain state (regtest genesis is old).
delay_inbound = false