Coder Social home page Coder Social logo

ben2077 / substrate-consensus-barcamp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from andresilva/substrate-consensus-barcamp

0.0 1.0 0.0 137 KB

Simple demo of substrate's consensus framework

License: The Unlicense

Dockerfile 0.34% Rust 98.82% Shell 0.83%

substrate-consensus-barcamp's Introduction

Substrate Consensus Barcamp

A very dumb/simple consensus engine for block production and finality written as an exercise to showcase Substrate's consensus framework abstractions.

Relevant code exists in the consensus crate.

Build

cargo build --release

Start block authoring validator

This node should only bake new blocks but not finalize them. Although it is listening for gossip finality notifications (--finality-gadget).

./node-template -d val1 --validator --port 12345 --node-key 0000000000000000000000000000000000000000000000000000000000000001 --finality-gadget

Start finality validator

This node is not a regular validator and therefore won't be baking any new blocks. But it is a finality gadget validator and it should finalize new blocks it imports and gossip those notifications on the network (--finality-gadget-validator).

./node-template -d val2 --bootnodes "/ip4/127.0.0.1/tcp/12345/p2p/QmRpheLN4JWdAnY7HGJfWFNbfkQCb6tFf4vvA6hgjMZKrR" --finality-gadget-validator

substrate-consensus-barcamp's People

Contributors

andresilva avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.