garlicoin.org

Run a Garlicoin node

A node keeps its own copy of the blockchain and shares it. Setup takes about 20 minutes; the first sync then takes an hour or more.

Disk space About 16 GB For the full chain, growing slowly. A pruned node needs about 5 GB.
Memory 1–2 GB A small VPS or an old laptop is enough. Raspberry Pi: build from source (no ARM download)
Network Port 42069 Open it (TCP) so other nodes can connect to you

Set up a node

  1. Install Garlicoin Core from the official downloads page.
  2. Skip most of the sync with our bootstrap file.
  3. Add a config file named garlicoin.conf in the data directory. The example here connects to nodes online right now.
  4. Open port 42069 on your router or firewall and forward it to the node's machine.
  5. Check it's working. Your block height should match the network status page, and garlicoin-cli getnetworkinfo should show inbound connections after a while.

Keep it running on Linux

Save this as /etc/systemd/system/garlicoind.service, change User and the paths, then run sudo systemctl enable --now garlicoind.

[Unit]
Description=Garlicoin node
After=network-online.target

[Service]
User=garlic
ExecStart=/usr/local/bin/garlicoind \
  -daemon=0 \
  -datadir=/home/garlic/.garlicoin
ExecStop=/usr/local/bin/garlicoin-cli \
  -datadir=/home/garlic/.garlicoin \
  stop
Restart=on-failure
TimeoutStopSec=300

[Install]
WantedBy=multi-user.target

Example garlicoin.conf

# Accept connections from other nodes
listen=1
# Keep at most this many connections
maxconnections=40
# Uncomment to save disk space (in MB).
# A pruned node still checks everything
# but can't serve old blocks.
#prune=3000
# Nodes that are online right now:
addnode=node.garlicoin.org
addnode=98.149.17.72
addnode=38.242.230.153
addnode=157.180.63.44
addnode=155.94.251.214
addnode=149.56.19.7
addnode=64.181.232.233
addnode=98.248.22.202
addnode=139.99.209.227

peers.txt

Where the data directory is

Windows%APPDATA%\Garlicoin
macOS~/Library/Application Support/Garlicoin
Linux~/.garlicoin

Handy commands

  • garlicoin-cli getblockcount · your block height
  • garlicoin-cli getconnectioncount · how many peers
  • garlicoin-cli getnetworkinfo · version and connections
  • garlicoin-cli stop · shut down cleanly