Run a node
A node keeps a full copy of the Nember block chain, checks every block against the rules and passes blocks and transactions on to other nodes. The more independent nodes there are, the harder the network is to cheat. A node needs little: two CPU cores, 2 GB of memory and a few GB of disk are plenty for the testnet.
The node program is nemberd. The wallet, nember-qt, is a node too, with a window. nember-cli sends commands to a running node.
Ports and folders
| Testnet | Mainnet | |
|---|---|---|
| P2P port (other nodes) | 16362 | 6362 |
| RPC port (commands) | 16361 | 6361 |
| Data folder on Windows | %APPDATA%\Nember\testnet1 |
%APPDATA%\Nember |
| Data folder on Linux | ~/.nember/testnet1 |
~/.nember |
The configuration file nember.conf is always in the main data folder (%APPDATA%\Nember or ~/.nember), also for the testnet.
Never open the RPC port
The RPC port controls the node and its wallet. Never forward it on a router or publish it to the internet. By default the node accepts commands only from the same computer, using a cookie file in the data folder, so no password needs to be written down.
Windows
- Unpack the
.zip, for example toC:\Nember. The programs are in thebinfolder:nemberd.exe,nember-cli.exeandnember-qt.exe. -
Create
%APPDATA%\Nember\nember.conf:ini testnet=1 server=1 listen=1 -
Start
nemberd.exe, ornember-qt.exefor the wallet window. Both read the same file. - When Windows Firewall asks, allow private networks only.
-
Check it in a second terminal:
powershell .\nember-cli.exe getblockchaininfo .\nember-cli.exe getpeerinfo
Stop the node with nember-cli stop; it shuts down cleanly.
Linux
tar xzf nember-*-x86_64-linux-gnu.tar.gz
mkdir -p ~/.nember
printf 'testnet=1\nserver=1\nlisten=1\n' > ~/.nember/nember.conf
./nember-*/bin/nemberd -daemon
./nember-*/bin/nember-cli getblockchaininfo
Docker
docker load -i nember-node-docker.tar.gz
docker run -d --name nember-node \
--cpus 2 --memory 2g \
-v /srv/nember:/data \
-p 16362:16362 \
nember-node:latest
--cpus 2 --memory 2gkeeps the node from competing with other services./dataholds the block chain, wallet andnember.conf. Back it up and never share it.- Only the P2P port is published.
- The container runs as user 99, group 100. Make the data folder writable for that user.
The same image can run the solo pool (-e NEMBER_SOLO_POOL=yes, port 16364) and a block explorer (-e NEMBER_EXPLORER=yes, port 16365) next to the node.
Unraid
Nember has an Unraid template, nember-testnet, with a step-by-step guide in the node repository (contrib/unraid). It limits the node to 2 CPU cores and 2 GB of memory, publishes only the P2P port, and has switches for the solo pool and the block explorer.
Connecting to other nodes
Until the public testnet starts, Nember has no automatic seed nodes. Connect to a node you know by adding a line per node to nember.conf:
addnode=NODE_ADDRESS:16362
A healthy node has several connections: nember-cli getconnectioncount should show more than four. That also matters for protection against deep reorganisations.
Useful commands
| Command | Shows |
|---|---|
getblockchaininfo |
network, height, newest block, sync progress |
getpeerinfo |
the nodes you are connected to |
getconnectioncount |
the number of connections |
getmininginfo |
difficulty and network hashrate |
stop |
stops the node cleanly |
When the testnet restarts
When a rule change makes old test blocks invalid, the testnet starts again from block 1. The node keeps your wallet and nember.conf. The old chain folder is renamed, not deleted, so you can remove it yourself once the new chain runs.