- https://github.com/neutron-org/neutron/releases/tag/v1.0.3
- Chain upgrade height : 1236300. Exact upgrade time can be checked here.
- Go version has been frozen at
1.20
. If you are going to build Neutron binary from source, make sure you are using the right GO version!
We need to disable automatic restart of the node service. To do so please alter your neutrond.service
file configuration and set appropriate lines to following values.
Restart=no
RestartSec=3 <- remove line
Environment="DAEMON_ALLOW_DOWNLOAD_BINARIES=false"
Environment="DAEMON_RESTART_AFTER_UPGRADE=false"
After that you will need to run sudo systemctl daemon-reload
to apply changes in the service configuration.
There is no need to restart the node yet; these changes will get applied during the node restart in the next step.
This upgrade requires neutrond
to have knowledge of the planned halt height. Please be aware that there is an extra step at the end to revert to neutrond
's original configurations.
There are two mutually exclusive options for this stage:
-
Stop the neutrond process.
-
Edit the application configuration file at
~/.neutron/config/app.toml
so thathalt-height
reflects the upgrade plan:
# Note: Commitment of state will be attempted on the corresponding block.
halt-height = 1236300
-
Start neutrond process
-
Wait for the upgrade height, and proceed to Step 2.
-
Stop the neutrond process.
-
Do not modify
app.toml
. Restart theneutrond
process with the flag--halt-height
:
neutrond --halt-height 1236300
- Wait for the upgrade height and confirm that the node has halted
After performing these steps, the upgrade will proceed as usual using Cosmovisor.
- Go to neutron directory if present else clone the repository
git clone https://github.com/neutron-org/neutron.git
- Follow these steps if neutron repo already present
cd $HOME/neutron
git pull
git fetch --tags
git checkout v1.0.3
make install
~/.neutrond/cosmovisor/current/bin/neutrond version
# Output should be
1.0.2
$ neutrond version --long
name: neutron
server_name: neutrond
version: 1.0.3
commit: 1c701333f7400dda62de6e3541ac98a6a1ba5d77
cp $GOPATH/bin/neutrond ~/.neutrond/cosmovisor/current/bin
Depending on which path you chose for Step 1, either:
- Reset
halt-height = 0
option in theapp.toml
or - Remove it from start parameters of the neutrond binary and start node again