Operate your validator
Check your validator, install new releases, stop and restart it, read its logs, and clean up when a network ends.
Once it's running, your validator needs little attention. Check it now and then, install new releases when LayerZero tells you about them, and keep the host running. If the host restarts, it starts your validator again by itself.
Check your validator
zero validator statusIt reads your setup and changes nothing. Run it as often as you like, after setting up your terminal.
| Field | What it shows |
|---|---|
Seat | Your seat on the network |
Validator address | Your validator's address, derived from your identity key |
LayerZero's validator image, Genesis | The release LayerZero has published, or "not released yet" |
Validator stack | Your zero-validator stack, or none before Step 4 |
Host | Your host's EC2 instance and its state (running, stopped, …) |
Public address | Your host's fixed public IP address |
Mode | Whether the host is set to only check itself (check) or to run the validator (run) |
Host's last report | What the host last reported, such as running |
Checked for LayerZero's current image | Whether your host has checked itself against the latest release |
Node | The node's latest status line, refreshed every minute |
Next | What to do now, if anything |
In the Node line:
| Value | Healthy when |
|---|---|
finalized_height | It keeps rising between checks |
peers | Above 0 |
signing_enabled | true |
If finalized_height stops rising or peers drops to 0 for more than a few minutes, check the host is running and send the output to your LayerZero contact.
New releases
When LayerZero publishes a new release for your network, it tells you through your contact. Set up your terminal and run:
zero validator prepareIt checks your host against the new release. If your validator was running, it's off for those few minutes and starts again by itself once the check passes. If you hadn't started it yet, run zero validator start afterwards.
Until you do, zero validator status says so in its Next line.
Stop and restart
To stop your validator, stop its host in the EC2 console (or with aws ec2 stop-instances). Your keys stay sealed in your bucket, and the host's data volume is kept.
To start it again, run zero validator start, or start the host in EC2. A host set to run starts your validator at every boot.
While it's stopped, your validator doesn't sign. If you plan downtime, tell your LayerZero contact first.
Logs
Your host has no SSH. To look at it, open a session with AWS Session Manager on the instance zero validator status names. Then:
sudo tail -n 100 /var/log/zero-validator.log # the host's boot log
sudo docker logs --tail 100 zero-validator # the validator's own logYour keys never appear in either log. They are in the validator's memory, though, so anyone who can open a session or run commands on the host could read them. Limit who can use Session Manager and Run Command on it.
When the network ends
Only when LayerZero tells you the network has ended, your administrator deletes the stacks, in this order:
aws cloudformation delete-stack --stack-name zero-validator --region "$AWS_REGION"
aws cloudformation delete-stack --stack-name zero-keygen --region "$AWS_REGION"
aws cloudformation wait stack-delete-complete --stack-name zero-validator --region "$AWS_REGION"
aws cloudformation wait stack-delete-complete --stack-name zero-keygen --region "$AWS_REGION"
aws cloudformation delete-stack --stack-name zero-onboarding --region "$AWS_REGION"Then, by hand:
- in the EC2 console, delete the validator's data volume and its Elastic IP address. Both are tagged
zero:network, and both cost money until you delete them; - in Systems Manager Parameter Store, delete the parameters under
/zero-onboarding/.
Your KMS key and your bucket stay, by design. Delete them yourself only once you're sure you no longer need the keys.
To join a new network, start again from Step 1 with the new network's invite.