mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-11-10 10:05:18 +00:00
fix: use kava instead of kvd (#1141)
This commit is contained in:
parent
4f300a040e
commit
2e99b716e2
@ -66,10 +66,9 @@ kvd export --for-zero-height --height 1803250 > export-genesis.json
|
|||||||
make install
|
make install
|
||||||
|
|
||||||
# verify versions
|
# verify versions
|
||||||
kvd version --long
|
kava version --long
|
||||||
# name: kava
|
# name: kava
|
||||||
# server_name: kvd
|
# server_name: kava
|
||||||
# client_name: kvcli
|
|
||||||
# version: v0.16.0
|
# version: v0.16.0
|
||||||
# commit: [PLACEHOLDER]
|
# commit: [PLACEHOLDER]
|
||||||
# build_tags: netgo,ledger
|
# build_tags: netgo,ledger
|
||||||
@ -77,17 +76,17 @@ kvd export --for-zero-height --height 1803250 > export-genesis.json
|
|||||||
|
|
||||||
|
|
||||||
# Migrate genesis state
|
# Migrate genesis state
|
||||||
kvd migrate export-genesis.json > genesis.json
|
kava migrate export-genesis.json > genesis.json
|
||||||
|
|
||||||
# Verify output of genesis migration
|
# Verify output of genesis migration
|
||||||
kvd validate-genesis genesis.json # should say it's valid
|
kava validate-genesis genesis.json # should say it's valid
|
||||||
kvd assert-invariants genesis.json # should say invariants pass
|
kava assert-invariants genesis.json # should say invariants pass
|
||||||
jq -S -c -M '' genesis.json | shasum -a 256
|
jq -S -c -M '' genesis.json | shasum -a 256
|
||||||
# [PLACEHOLDER]
|
# [PLACEHOLDER]
|
||||||
|
|
||||||
# Restart node with migrated genesis state
|
# Restart node with migrated genesis state
|
||||||
cp genesis.json ~/.kvd/config/genesis.json
|
cp genesis.json ~/.kava/config/genesis.json
|
||||||
kvd unsafe-reset-all
|
kava unsafe-reset-all
|
||||||
|
|
||||||
# Restart node -
|
# Restart node -
|
||||||
# ! Be sure to remove --halt-time flag if it is set in systemd/docker
|
# ! Be sure to remove --halt-time flag if it is set in systemd/docker
|
||||||
|
Loading…
Reference in New Issue
Block a user