返回介绍

Validator Set Tutorial Overview

发布于 2023-06-28 21:14:12 字数 5168 浏览 0 评论 0 收藏 0

This tutorial will walk you through the setup of a private blockchain using https://www.wenjiangs.com/doc/openethereum-Aura consensus mechanism and a dynamic validator set contract.

No previous knowledge of OpenEthereum or https://www.wenjiangs.com/doc/openethereum-Aura is required.

https://www.wenjiangs.com/doc/openethereum-Aura (for “Authority Round”) is a proof-of-authority (PoA) consensus mechanism that lets a defined set of authorities seal blocks in a round robin fashion. The term validator is also used in place of an authority node. Unlike proof-of-work (PoW) based consensus mechanism, PoA-based consensus makes sense for private consortium blockchains or networks using a currency without value such as test networks where there is no incentive for miners to spend money in mining. Kovan testnet is running on https://www.wenjiangs.com/doc/openethereum-Aura.
There are different ways to define the set of authorities in the chain specification file. The easiest way is to use a fixed list of authorities. Any change in this list requires a hard fork, and thus an off-chain synchronisation between the parties running authority nodes. Kovan network historically ran with a fixed list of authorities.

A fixed list of addresses works well for small networks with few participants. However, it lacks flexibility as there is no easy way to add or remove validators, there is also no monitoring mechanism to report if authority nodes are offline. Using a contract, however, allows managing authorities without a hard fork as well as reporting misbehaving authorities. This tutorial will show the setup of a network using a fixed list of validators at its start and then move to a Validator-set smart contract to manage authorities. Finally, we will use a simple script to monitor authorities and spot the misbehaving ones.

The overall setup is as follows:

  • Two authority accounts (Node0 and Node1)
  • One standard account receiving RPC requests (Alice)

If you wish to read this tutorial and quickly get to the end result, you can clone this repository and spin up the nodes with an already set up blockchain.

Table of contents:

Part 1 - Configuring each node →

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文