Hive Engine P2P Reboot

in #hiveengine4 years ago

image.png

<p dir="auto">As announced on <a href="https://hive.blog/p/@aggroed/hive-engine-progress-deploying-a-p2p-testnet-this-week">this post, 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. <p dir="auto">You may recall our previous work towards <a href="https://hive.blog/steemsmartcontracts/@harpagon/steem-smart-contracts-a-few-words-regarding-the-consensus-layer">this effort 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. <p dir="auto">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. <p dir="auto">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. <p dir="auto">For this reason, we expect to run this testnet for 2 weeks before deploying fully. <p dir="auto">The timeline is as follows: <ol> <li>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. <li>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. <li>After two weeks of stable runs and verifying the data, we will then proceed to launch the P2P network for real. <h2>Hash Differences <p dir="auto">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 <code>pm2 was used with the wrong parameters (default kills all forked processes immediately without allowing a clean exit). <p dir="auto">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. <h2>Setup Instructions <p dir="auto">Post will be updated with instructions soon. Please indicate your interest in joining the public test in the <a href="https://discord.gg/whqnzqT" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">Hive Engine Discord, or DM me at eonwarped#2295.
Sort:  

@eonwarped, Strong come back is always important. Good wishes from my side towards this "Development Phase". Stay blessed.

I think about employing my server as a node. What are the hardware requirements?

2 cores, 4G RAM recommended, 50G free space

Well done.
Looking forward for this project.

Very nice.

Is there another blockchain getting so much different things done at the same time?

Me poarece una propuesta muy alentadora a un futuro sercano, saludos.


Will reach you at discord to know spec to run a node! Thanks for the update!
!wine@eonwarped,

Cheers~


0.100 WINECheers, @theguruasia You Successfully Shared With @eonwarped.
You Earned 0.100 WINE As Curation Reward.
You Utilized 3/3 Successful Calls.

wine-greeting


WINE Current Market Price : 1.100 HIVE