Low memory Bitcoin

Low memory Bitcoin

A prototypal Bitcoin node configuration for a low memory environment.

# Disable the mempool entirely; do not store unconfirmed transactions
blocksonly=1

# Set database cache size in megabytes
dbcache=20

# Disable wallet
disablewallet=1

# Maximum number of inbound+outbound connections
maxconnections=4

# Maximum size of the signature cache
maxsigcachesize=4

# Enable pruning to reduce storage requirements by deleting old blocks
# 0 = default (no pruning)
# 1 = allows manual pruning via RPC
# >=550 = target to stay under in megabytes
prune=550

# Set the number of threads to service RPC calls
rpcthreads=1

Getting Started

This configuration file is a list of setting=value pairs, one per line, with
optional comments starting with the '#' character.

By default when running Bitcoin, Bitcoin will look for this a file in the
bitcoin data directory, but both the data directory and the configuration file
path may be changed using the -datadir and -conf command-line arguments.

The configuration file is not automatically created; you can create it using
your favorite plain-text editor, or use the bitcoin.conf file located in this
repository.

Prerequisites

In order to take advantage of this configuration, first make sure you are
Running Bitcoin.

Reference Material