zakurad on Arctic
Status: on Arctic.
zakurad is the Styx node. Arctic has two kinds of node:
- A verifier syncs from the operator over P2P and checks every block and transaction against the full consensus rules, the operator's block signature included. It never produces blocks, and it doesn't need to trust the operator's RPC answers. The release's
verifier.tomlconfigures one. - The operator produces Arctic's blocks.
Every node shares one network table, and that table is the chain's identity: keep it identical on every node, apart from the paths of the genesis and checkpoint files.
Running a verifier
-
Unpack the release (Getting started). Its
verifier.tomlholds Arctic'snetworktable, with the block signer's public key and the lockbox address filled in. -
Put
genesis.hexandcheckpoints.txtsomewhere permanent, and write their absolute paths inverifier.toml, atgenesis_blockandcheckpoints. -
Write the operator's P2P address in
initial_testnet_peers. -
Start the node:
zakurad -c verifier.toml start
The node syncs the blocks the checkpoint list names by their hashes, validates every block above the last one in full, and follows the operator's tip. It rejects any block not signed by block_signer.
Ports
| Listener | As shipped |
|---|---|
| P2P | 0.0.0.0:18333 |
| RPC | 127.0.0.1:18332 on a verifier, cookie-authenticated, as zakurad's default is. On the operator, the public listener, with TLS and without a cookie. |
| Admin RPC | operator only: 127.0.0.1:18331, every method, cookie-authenticated, loopback only |
On a network with a block signer, the public RPC listener doesn't offer getblocktemplate, submitblock or submitsolution.
A cookie-authenticated listener closes the connection on a call without the node's cookie. The node writes the cookie to .cookie in rpc.cookie_dir, by default the zakura folder of the cache directory of the user it runs as. The arctic CLI sends it with --rpc-cookie (The wallet).
Settings the default config leaves out
The generated default configuration doesn't list these. Arctic's configs set the ones they need.
| Setting | What it does |
|---|---|
mining.block_interval_seconds | On a network with a block signer, produce and sign a block this often. Unset, the node produces none. |
mining.block_signing_key_file | The file holding the ed25519 secret key that signs produced blocks. Its public key must be the network's block_signer. |
mining.block_max_weight | The largest weight of the block templates this node builds. Unset, the consensus limit; a larger value is capped at it. |
rpc.admin_listen_addr | A loopback listener with every method, cookie-authenticated, in plaintext. |
rpc.tls | TLS for the main RPC listener: a certificate chain and its key. |
The operator
Arctic has one operator. Only the holder of the block signer's key can extend Arctic, and that key's file must be readable only by the node's user.