create account

Hive Engine P2P Reboot by eonwarped

View this thread on: hive.blogpeakd.comecency.com
· @eonwarped ·
$51.42
Hive Engine P2P Reboot
![image.png](https://files.peakd.com/file/peakd-hive/aggroed/5TuzrgEX-image.png)

As announced on [this post](https://hive.blog/p/@aggroed/hive-engine-progress-deploying-a-p2p-testnet-this-week), we are close to having a full deployment of the P2P Network for Hive Engine nodes. This will allow anyone to set up their own Hive Engine node, participate in our consensus/verification mechanism, and earn witness rewards for doing so. At the same time, any participating node can then be used for querying sidechain data.

You may recall our previous work towards [this effort](https://hive.blog/steemsmartcontracts/@harpagon/steem-smart-contracts-a-few-words-regarding-the-consensus-layer) which stalled when the Steem/Hive split occurred. At the time the testnet had healthy participation and while the witness mechanism was working, the hashes between participants were not matching. 

We are establishing a second run of the P2P testnet which will run on mainnet transactions, but with the witness contracts deployed internally. This will not affect the primary node and will allow us to do a dry run / dress rehearsal before deploying P2P fully.

The changes made significantly improve the hash calculation issues that plagued the previous testnet, and we are already operating a 3-node version of this test which was used to fix a few other bugs.

For this reason, we expect to run this testnet for 2 weeks before deploying fully.

The timeline is as follows:

1. We will have the new version of the core node tagged for release and deployed to the primary node, where we will take a snapshot of the DB. This is scheduled for 1/18 evening EST.
1. We will then launch the second public "testnet" described above and allow anyone to join and make sure that it behaves as expected. Instructions can be found below.
1. After two weeks of stable runs and verifying the data, we will then proceed to launch the P2P network for real.


## Hash Differences

A significant reason for the hash discrepancies during the previous testnet was that the node was not robust to abnormal termination conditions, and could corrupt the database if not cleanly exited. This was especially the case when `pm2` was used with the wrong parameters (default kills all forked processes immediately without allowing a clean exit).

My recent work eliminates that possibility by essentially guaranteeing that any updates to the database while processing a block are committed on an all-or-nothing basis. My backup node with these changes have tailed the primary node and replicated the hashes as well as verified data consistency, and am confident that a second run of a testnet will be a lot smoother. The same test has also allowed me to find bugs with how the primary node handles hash updates, as well as discovering when the data was tampered with, resulting in hash differences.

## Setup Instructions

Post will be updated with instructions soon. Please indicate your interest in joining the public test in the [Hive Engine Discord](https://discord.gg/whqnzqT), or DM me at eonwarped#2295.
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 333 others
properties (23)
authoreonwarped
permlinkhive-engine-p2p-reboot
categoryhiveengine
json_metadata{"tags":["hiveengine","leofinance","palnet"],"image":["https://files.peakd.com/file/peakd-hive/aggroed/5TuzrgEX-image.png"],"links":["https://hive.blog/p/@aggroed/hive-engine-progress-deploying-a-p2p-testnet-this-week"],"app":"hiveblog/0.1","format":"markdown"}
created2021-01-17 04:04:48
last_update2021-01-17 04:04:48
depth0
children9
last_payout2021-01-24 04:04:48
cashout_time1969-12-31 23:59:59
total_payout_value27.058 HBD
curator_payout_value24.364 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length3,071
author_reputation88,102,208,706,615
root_title"Hive Engine P2P Reboot"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id101,411,419
net_rshares212,045,232,240,937
author_curate_reward""
vote details (397)
@chireerocks ·
@eonwarped, Strong come back is always important. Good wishes from my side towards this "Development Phase". Stay blessed.
properties (22)
authorchireerocks
permlinkqn2907
categoryhiveengine
json_metadata{"users":["eonwarped"],"app":"hiveblog/0.1"}
created2021-01-17 04:12:09
last_update2021-01-17 04:12:09
depth1
children0
last_payout2021-01-24 04:12:09
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_length122
author_reputation325,007,274,479,549
root_title"Hive Engine P2P Reboot"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id101,411,452
net_rshares0
@jocieprosza ·
I think about employing my server as a node. What are the hardware requirements?
properties (22)
authorjocieprosza
permlinkqn36ix
categoryhiveengine
json_metadata{"app":"hiveblog/0.1"}
created2021-01-17 16:16:09
last_update2021-01-17 16:16:09
depth1
children1
last_payout2021-01-24 16:16:09
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_length80
author_reputation48,570,665,734,666
root_title"Hive Engine P2P Reboot"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id101,418,184
net_rshares0
@eonwarped ·
$0.03
2 cores, 4G RAM recommended, 50G free space
👍  ,
properties (23)
authoreonwarped
permlinkqne13a
categoryhiveengine
json_metadata{"tags":["palnet"],"app":"palnet/0.1","canonical_url":"undefined/@eonwarped/qne13a"}
created2021-01-23 12:52:24
last_update2021-01-23 12:52:24
depth2
children0
last_payout2021-01-30 12:52:24
cashout_time1969-12-31 23:59:59
total_payout_value0.012 HBD
curator_payout_value0.013 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length43
author_reputation88,102,208,706,615
root_title"Hive Engine P2P Reboot"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id101,517,120
net_rshares209,935,484,086
author_curate_reward""
vote details (2)
@poshbot ·
https://twitter.com/ilbiscom/status/1350851712748298240
properties (22)
authorposhbot
permlinkre-hive-engine-p2p-reboot-20210117t170530z
categoryhiveengine
json_metadata"{"app": "beem/0.24.8"}"
created2021-01-17 17:05:30
last_update2021-01-17 17:05:30
depth1
children0
last_payout2021-01-24 17:05:30
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_length55
author_reputation5,554,335,374,496
root_title"Hive Engine P2P Reboot"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id101,418,837
net_rshares0
@prm4031 ·
Me poarece una propuesta muy alentadora a un futuro sercano, saludos.
properties (22)
authorprm4031
permlinkqn3pbz
categoryhiveengine
json_metadata{"app":"hiveblog/0.1"}
created2021-01-17 23:02:24
last_update2021-01-17 23:02:24
depth1
children0
last_payout2021-01-24 23:02:24
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_length69
author_reputation90,327,293,159,686
root_title"Hive Engine P2P Reboot"
beneficiaries
0.
accounthiveonboard
weight100
1.
accounttipu
weight100
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id101,423,308
net_rshares0
@theguruasia ·
@eonwarped,
Will reach you at discord to know spec to run a node! Thanks for the update!
!wine

Cheers~ 
properties (22)
authortheguruasia
permlinkre-eonwarped-qn45nl
categoryhiveengine
json_metadata{"tags":["hiveengine"],"app":"peakd/2021.01.3"}
created2021-01-18 04:54:57
last_update2021-01-18 04:54:57
depth1
children1
last_payout2021-01-25 04:54:57
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_length104
author_reputation72,528,363,195,996
root_title"Hive Engine P2P Reboot"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id101,426,801
net_rshares0
@wine.bot ·
<center>
<sup>Cheers, @theguruasia You Successfully Shared <b>0.100 WINE</b> With @eonwarped.</sup>
<sup>You Earned <b>0.100 WINE</b> As Curation Reward.</sup>
<sup>You Utilized <b>3/3</b> Successful Calls.</sup>

<img src="https://files.peakd.com/file/peakd-hive/theguruasia/0Mg2vSTo-Wine3Greeting.png" alt="wine-greeting">

---
<sup>[WINE Current Market Price](https://hive-engine.com/?p=market&t=WINE) : <b>1.100 HIVE</b></sup>
</center>
properties (22)
authorwine.bot
permlink20210118t045515528z
categoryhiveengine
json_metadata{"tags":["wine","wineyard"],"app":"tan-bot/1.1","format":"markdown"}
created2021-01-18 04:55:15
last_update2021-01-18 04:55:15
depth2
children0
last_payout2021-01-25 04:55:15
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_length441
author_reputation2,761,201,063,271
root_title"Hive Engine P2P Reboot"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id101,426,803
net_rshares0
@urun ·
Very nice. 

Is there another blockchain getting so much different things done at the same time?
properties (22)
authorurun
permlinkre-eonwarped-qn3ohn
categoryhiveengine
json_metadata{"tags":["hiveengine"],"app":"peakd/2021.01.3"}
created2021-01-17 22:44:12
last_update2021-01-17 22:44:12
depth1
children0
last_payout2021-01-24 22:44:12
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_length96
author_reputation93,309,388,768,828
root_title"Hive Engine P2P Reboot"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id101,423,087
net_rshares0
@yehey ·
Well done.
Looking forward for this project.
properties (22)
authoryehey
permlinkqn3mt2
categoryhiveengine
json_metadata{"app":"hiveblog/0.1"}
created2021-01-17 22:07:51
last_update2021-01-17 22:07:51
depth1
children0
last_payout2021-01-24 22:07:51
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_length44
author_reputation22,184,787,552,504
root_title"Hive Engine P2P Reboot"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id101,422,487
net_rshares0