For validator operators
Run a validator
Validators keep the Orien network running. They vote on every payment, agree on every balance once an hour, and share the fees. Anyone with enough ORN can run one, with the orien command, the network’s own program.
What it takes
- Stake
- At least 10,000 ORN, from your own wallet. Up to 33 validators take part: those with the largest stakes.
- Joining
- At the next checkpoint after staking, within the hour.
- Earnings
- A share of the hour’s fees at every checkpoint, in proportion to your stake, paid to the wallet that staked.
- Leaving
- Unstaking takes 168 checkpoints, a week. The stake stays locked meanwhile, and can still be taken for cheating.
- Computer
- A Linux or Mac computer that stays on and online, with an internet address others can reach and one open TCP port. It needs about 45,000 open files: each connection uses a thread and two.
Set it up
- 1
Install orien
On the computer that will run the validator:
curl -fsSL https://orien.network/install.sh | shIt installs the orien command and the network’s genesis file in
~/.orien, after checking the download against its published checksum. - 2
Make the validator’s key
orien keygen validator.keyThis key signs the validator’s votes. It is not a wallet: it holds no ORN, and your stake stays yours.
- 3
Open its port to the internet
A validator uses one TCP port, 7100 unless you choose another. Both other validators and wallets reach it there: wallets ask it for balances and status and send it payments to vote on. Allow incoming connections to that port from every address, in the computer’s firewall and, at home, in your router’s port forwarding.
A validator that turns wallets away still signs checkpoints, but every wallet counts it as unreachable.
- 4
Start the validator
orien node -k validator.key -d data --listen 0.0.0.0:7100datais the folder where it keeps its records. Leave it running: to keep it going through restarts, see Keep it running below. - 5
Check it from outside
From another computer, on another network, such as a phone’s hotspot:
orien ping HOST:7100HOSTis the validator’s public internet address or a domain name pointing to it. It must say the validator answers before you stake.If it doesn’t answer
- Timed out, or connection refused: the port isn’t open yet. Check the firewall, the router’s port forwarding, and that the validator is running.
- Connection reset, or connection closed: the port is reachable, but something cuts the connection. Look for a firewall, proxy or security service in front of the validator that turns connections away, and make sure orien is up to date with
orien update. Then ping again from another network.
- 6
Stake
From the wallet holding your ORN, on any computer:
orien stake --amount 10000 --validator-key validator.key --address HOST:7100--addressis where everyone will reach your validator, so use the same public address as in step 5, never0.0.0.0or a home network address like192.168.1.20. If the stake is among the 33 largest, the validator joins at the next checkpoint. - 7
See it join
orien statusAfter the next checkpoint it lists your validator with the others. It shows on the explorer too.
Keep it running
On Linux, a systemd service starts the validator with the computer and brings it back if it stops. Save this as /etc/systemd/system/orien-validator.service, with your own user and paths:
[Unit] Description=Orien validator After=network-online.target Wants=network-online.target [Service] User=orien ExecStart=/home/orien/.orien/bin/orien node -k /home/orien/validator.key -d /home/orien/data --listen 0.0.0.0:7100 Restart=always RestartSec=5 LimitNOFILE=45000 [Install] WantedBy=multi-user.target
sudo systemctl enable --now orien-validatorLimitNOFILE gives it the open files it needs. journalctl -u orien-validator -f shows what it is doing.
Keep the key safe
A validator that signs two different things with the same one-time key, or votes for two conflicting payments, loses its whole stake at the next checkpoint. Honest validators never do, as long as these rules hold:
- Run one copy, ever. Never start the same key on two computers, even for a moment.
- The key file and the data folder belong together. The data folder records which one-time keys are used. Never go back to an older copy of it: the validator would use those keys again.
- Moving to a new computer: stop the old one for good first, then move the key file and the data folder together, and start it on the new one.
- Keep the key private, readable only by the user that runs the validator (
chmod 600 validator.key). - It renews its key by itself. Once half of its one-time keys are used, it makes the next key in its data folder and announces it at a checkpoint.
Your stake belongs to the wallet that staked it, not to the key. If the validator is gone, release the stake from that wallet with orien unstake --amount 10000.
Stay up to date
A validator updates itself. When a new release signed with the Orien release key comes out, it installs it and restarts at a calm moment, in the minutes after a checkpoint, one validator at a time. Leave this on.
--no-auto-update turns it off. Then follow the changelog and update promptly with orien update, because a validator on an old release can fall behind the network’s rules.
Talk to us
Please say hello on the Orien Discord once your validator runs, with its address. Then we can tell you if something looks wrong with it, and you can ask anything. You can also write to [email protected].
The technical paper states every rule validators follow, and Build with Orien covers the rest of the orien command.