From 8a510172111e77d7abe9cc84b9408135ea95a35e Mon Sep 17 00:00:00 2001 From: Sh1Tt Date: Sun, 26 Jun 2022 10:11:48 +0200 Subject: [PATCH 1/2] Update README.md --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/README.md b/README.md index 989b043ce5..41994e4216 100644 --- a/README.md +++ b/README.md @@ -92,6 +92,28 @@ In order to notify peers that you are accepting inbound, you _must_ pass $ hsd --listen --public-host [my-public-ip-address] --max-inbound 50 ``` +### Upgrade + +Go to the installation directory and update the repo. + +``` +$ cd ${INSTALL_DIR}/hsd +$ git pull +``` +Select a branch and upgrade. + +``` +$ git checkout +$ npm install +``` + +After installation of the new version, activate it by restarting the HSD. + +Note that when upgrading from version 3.x to 4.x, it is required +to pass `--chain-migrate=3` at restart. +When upgrading from v2.x `--wallet-migrate=1` should also be passed. + + ### Mining To mine with a CPU, HSD should be used in combination with [hs-client]. From 5e8e818dbb0f7834d12e4d50825656e113ddd938 Mon Sep 17 00:00:00 2001 From: Sh1Tt Date: Sun, 26 Jun 2022 10:15:14 +0200 Subject: [PATCH 2/2] Added upgrade description Added a description in the README.md how to upgrade/switch version. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 41994e4216..a725700e3d 100644 --- a/README.md +++ b/README.md @@ -92,7 +92,7 @@ In order to notify peers that you are accepting inbound, you _must_ pass $ hsd --listen --public-host [my-public-ip-address] --max-inbound 50 ``` -### Upgrade +### Upgrading Go to the installation directory and update the repo.