项目作者: nervosnetwork

项目描述 :
Overlord consensus protocol.
高级语言: Rust
项目地址: git://github.com/nervosnetwork/overlord.git
创建时间: 2019-07-24T09:13:59Z
项目社区:https://github.com/nervosnetwork/overlord

开源协议:MIT License

下载


Overlord

Overlord consensus protocol.

Crates.io
example workflow
License
Minimum rustc version

Introduction

Overlord is a new consensus protocol that decouple the consensus process from the execution process.

Detailed introduction: 中文|English

Usage

From cargo

  1. [dependencies]
  2. overlord = "0.4"

Overlord takes turns to become the leader by default. If you want to choose a leader randomly, add the random_leader feature to the dependency as below.

  1. [dependencies]
  2. overlord = { version = "0.4", features = ["random_leader"] }

Example

We simulated a salon scene to show an example of using overlord.

A distributed system for reaching a consensus on the content of a speech is realized by simulating the dialogue between speakers through the communication between threads.

Run the example by cargo run --example salon, and the system will output the agreed speech content in turn. Click here to see the detail.

It will check whether different speakers agree on the content of the speech.

Projects using Overlord

  • Muta, a high-performance blockchain framework.
  • Axon, a layer2 of CKB that is compatible with Ethereum.