Make backups of the following:
- ~/.nomic-*/tendermint/config/priv_validator_key.json
- ~/.nomic-*/tendermint/config/node_key.json [optional, recommended]
- ~/.nomic-*/signer
- ~/.orga-wallet
Update rust -
rustup update
Confirm rustc version is recent and nightly [rustc 1.73.0-nightly (d06ca0ffa 2023-08-18)]
rustup toolchain list
Just to be safe, delete old nomic repo
rm -rf ~/nomic
Clone repo again, switch to testnet and install
cd ~/ && git clone https://github.com/nomic-io/nomic
cd nomic && git checkout testnet
cargo install --locked --path .
Check service file is current
cat /etc/systemd/system/<nomic>.service
[Unit]
Description=Nomic daemon
After=network-online.target
[Service]
User=<user>
ExecStart=/<user>/.cargo/bin/nomic start --network testnet --tendermint-logs
Restart=always
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
Check signer service [optional, unused unless you are very high in rank of validators]
cat /etc/systemd/system/<nomicsigner>.service
[Unit]
Description=Nomic signer
After=network-online.target nomictest1.service
[Service]
User=<user>
ExecStart=/<user>/.cargo/bin/nomic signer --max-sigset-change-rate 0.35 --max-withdrawal-rate 0.1
Restart=always
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
Set config file to preference
nano ~/.nomic-*/tendermint/config/config.toml
Start node and wait until synced
systemctl enable <nomic service> && systemctl start <nomic service>
journalctl -fu <nomic service> -ocat
When synced, stop the node and replace the files you backed up previously, then restart and confirm operation, and finally start signer service.
- systemctl stop <nomic service>
- replace all 4 files
- systemctl start <nomic service> && journalctl -fu <nomic service> -ocat
- systemctl start <nomic signer service>