create account

Upgrading your Witness Node for HF26 by therealwolf

View this thread on: hive.blogpeakd.comecency.com
· @therealwolf · (edited)
$46.78
Upgrading your Witness Node for HF26
HF26 is right around the corner, on the 11th of October 2022. If you're a witness, now is the time to update your node(s).

Below is a short guide to get you started with Docker asap. If you prefer to install & run hived manually, check out [this post](https://peakd.com/hive-167922/@themarkymark/how-to-update-your-witness-to-hardfork-26-release-canidate-3) by @themarkymark.

---


# Prerequisites
- Ubuntu 20.04 or 22.04 (check via `lsb_release -a`)
- At least 400GB disk-space if using & downloading compressed block log, though I'd say 1 TB is recommended

### Step 1

Git clone the hive-docker script (originally created by @someguy123, forked by @drakos)

```
# Clone Repo
git clone https://github.com/Jolly-Pirate/hive-docker.git && cd hive-docker

# Create & edit .env file
touch .env && nano .env

```

### Step 2
Paste the code-snippet below into the `.env` file (make sure to comment/uncomment the line for BUILD_OS depending on your ubuntu version)

```
PORTS=8090
DOCKER_NAME=witness
CONTAINER_TYPE=witness

#SHM_DIR=$(pwd)
SHM_DIR=/dev/shm

# HF25 doesn't build on ubuntu 22.04
# Don't use ubuntu:bionic or focal on HF26 develop, gives a: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.
BUILD_OS=phusion/baseimage:focal-1.2.0 # ubuntu 20.04
# BUILD_OS=phusion/baseimage:jammy-1.0.0 # ubuntu 22.04
REPO_SOURCE=https://gitlab.syncad.com/hive/hive
TAG_VERSION=v1.26.0rc4
```

### Step 3 (Optional)

Run these if needed

```
# Install linux utils packages
./run.sh preinstall

# Install Docker
./run.sh install_docker

# Install and configure NTP synchronization
./run.sh install_ntp

# Set some optimization configs
./run.sh optimize
```

### Step 4

Build the hived software, edit the config

```
# Build Hived
./run.sh build v1.26.0rc4

# Set SHM size
./run.sh shm_size 20G
```

### Step 5

Edit the config and change the witness + private-key parameter. If you have a previous config.ini file, you can just copy the values from there.

```
nano data/witness_node_data_dir/config.ini
```

### Step 6

Download the block log. Make sure you confirm the deletion of the old block log and select compressed. You could also use an existing one, but the script downloads the latest from @gtg and that's always a trusted & reliable source.

```
# Download Block Log
./run.sh dlblocks
```

### Step 7

Replay the blockchain. You can also set a checkpoint by adding `checkpoint  = [68492031,"04151aff878fe5945aca7f4e9052044ecf743875"]` to the config.ini, though when I set it, I didn't noticed anything on startup. However, the replay was quite fast either way!

```
# Replay
./run.sh replay
```

### Step 8

If a new version should be released, simply edit the `TAG_VERSION` within the `.env` file, rebuild, and then (if not otherwise noted) `./run.sh restart`


---

And that's it. I hope these instructions are helpful!

Big thanks to @drakos for providing the forked script. If you like, make sure to [toss a vote to his witness](https://hivesigner.com/sign/account-witness-vote?witness=drakos&approve=1).
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 206 others
properties (23)
authortherealwolf
permlinkupgrading-your-witness-node-for-hf26
categoryhive-111111
json_metadata{"app":"peakd/2022.07.1","format":"markdown","tags":["hive","witness","hardfork26","hf26","docker"],"users":["themarkymark","themarkymark.","someguy123","drakos","gtg"],"image":[]}
created2022-10-06 11:54:21
last_update2022-10-06 11:56:54
depth0
children3
last_payout2022-10-13 11:54:21
cashout_time1969-12-31 23:59:59
total_payout_value15.616 HBD
curator_payout_value31.162 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length3,040
author_reputation582,206,457,448,159
root_title"Upgrading your Witness Node for HF26"
beneficiaries
0.
accountdrakos
weight4,000
1.
accountsomeguy123
weight1,000
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id117,234,705
net_rshares92,551,239,375,334
author_curate_reward""
vote details (270)
@chinito ·
$0.73
😊😎🤙 Nice! very good of u. what exactly will this HF do?
👍  
properties (23)
authorchinito
permlinkre-therealwolf-rjcmnx
categoryhive-111111
json_metadata{"tags":["hive-111111"],"app":"peakd/2022.07.1"}
created2022-10-06 20:38:21
last_update2022-10-06 20:38:21
depth1
children0
last_payout2022-10-13 20:38:21
cashout_time1969-12-31 23:59:59
total_payout_value0.366 HBD
curator_payout_value0.366 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length55
author_reputation194,951,979,677,448
root_title"Upgrading your Witness Node for HF26"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id117,246,980
net_rshares1,088,448,504,431
author_curate_reward""
vote details (1)
@drakos ·
$0.74
Thanks for the shout out.
👍  
properties (23)
authordrakos
permlinkre-therealwolf-rjct62
categoryhive-111111
json_metadata{"tags":["hive-111111"],"app":"peakd/2022.07.1"}
created2022-10-06 22:58:51
last_update2022-10-06 22:58:51
depth1
children0
last_payout2022-10-13 22:58:51
cashout_time1969-12-31 23:59:59
total_payout_value0.368 HBD
curator_payout_value0.368 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length25
author_reputation112,280,226,665,329
root_title"Upgrading your Witness Node for HF26"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id117,249,823
net_rshares1,110,654,888,523
author_curate_reward""
vote details (1)
@hivebuzz ·
Congratulations @therealwolf! You have completed the following achievement on the Hive blockchain and have been rewarded with new badge(s):

<table><tr><td><img src="https://images.hive.blog/60x70/http://hivebuzz.me/@therealwolf/upvotes.png?202210302105"></td><td>You distributed more than 195000 upvotes.<br>Your next target is to reach 200000 upvotes.</td></tr>
</table>

<sub>_You can view your badges on [your board](https://hivebuzz.me/@therealwolf) and compare yourself to others in the [Ranking](https://hivebuzz.me/ranking)_</sub>
<sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub>



**Check out the last post from @hivebuzz:**
<table><tr><td><a href="/halloween/@hivebuzz/halloween-2022"><img src="https://images.hive.blog/64x128/https://i.imgur.com/jeLRU6l.png"></a></td><td><a href="/halloween/@hivebuzz/halloween-2022">Trick or Treat - Share your scariest story and win your Halloween badge</a></td></tr><tr><td><a href="/hive-122221/@hivebuzz/pud-202211"><img src="https://images.hive.blog/64x128/https://i.imgur.com/805FIIt.jpg"></a></td><td><a href="/hive-122221/@hivebuzz/pud-202211">Hive Power Up Day - November 1st 2022</a></td></tr></table>

###### Support the HiveBuzz project. [Vote](https://hivesigner.com/sign/update_proposal_votes?proposal_ids=%5B%22199%22%5D&approve=true) for [our proposal](https://peakd.com/me/proposals/199)!
properties (22)
authorhivebuzz
permlinknotify-therealwolf-20221030t211705
categoryhive-111111
json_metadata{"image":["http://hivebuzz.me/notify.t6.png"]}
created2022-10-30 21:17:06
last_update2022-10-30 21:17:06
depth1
children0
last_payout2022-11-06 21:17:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,407
author_reputation369,833,133,319,902
root_title"Upgrading your Witness Node for HF26"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id117,919,773
net_rshares0