Skip to content

Database Settings

Eric Voskuil edited this page Mar 21, 2017 · 16 revisions

The following database settings are implemented in the libbitcoin-database and exposed in both Bitcoin Node (BN) and Bitcoin Server (BS).

[database]
# The blockchain database directory, defaults to 'blockchain'.
directory = blockchain
# Flush each write to disk, defaults to true.
flush_writes = true
# Full database files increase by this percentage, defaults to 50.
file_growth_rate = 50
# Block hash table size, defaults to 650000.
block_table_buckets = 650000
# Transaction hash table size, defaults to 110000000.
transaction_table_buckets = 110000000
# Spend hash table size, defaults to 250000000.
spend_table_buckets = 250000000
# History hash table size, defaults to 107000000.
history_table_buckets = 107000000
# The maximum number of entries in the unspent outputs cache, defaults to 0.
cache_capacity = 0

directory

The blockchain database directory, defaults to 'blockchain'.

flush_writes

Flush each write to disk, defaults to true.

file_growth_rate

Full database files increase by this percentage, defaults to 50.

block_table_buckets

Block hash table size, defaults to 650000.

transaction_table_buckets

Transaction hash table size, defaults to 110000000.

spend_table_buckets

Spend hash table size, defaults to 250000000.

history_table_buckets

History hash table size, defaults to 107000000.

cache_capacity

The maximum number of entries in the unspent outputs cache, defaults to 0.

Clone this wiki locally