Update Lisk Core (NPM)
Table of Contents
1. Check for new versions
npm outdated --global --depth=0
Package Current Wanted Latest Location
lisk-core 3.0.2 3.0.4 3.0.4 global
As the output indicates, we currently have v3.0.2 installed, but the latest version of Lisk Core is v3.0.4
.
4. Install the new version
In case a custom config file is used with Lisk Core, copy one of the default config files of the new Lisk Core version to use it as a basis for the new custom config, and adjust it according to your old custom config. |
npm update --global lisk-core
6. Sanity Check
Verify the correct version.
lisk-core --version
#lisk-core/3.0.4 linux-x64 node-v16.15.0
Check if the new transferFixHeight, serializationFixHeight
is correctly set:
-
transferFixHeight, serializationFixHeight
value for the Mainnet is17557156
. -
transferFixHeight, serializationFixHeight
value for the Testnet is15466999
.
Example: Checking
transferFixHeight, serializationFixHeight
for Testnetlisk-core node:info --pretty | grep "serializationFixHeight\|transferFixHeight"
"transferFixHeight, serializationFixHeight": 15466999
For delegates
For delegates: Don’t forget that Enabling forging again is required after the update.
|