GitHub - Sube-py/dpos: A Simple DPoS Algorithm, Use go-libp2p implement.

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Repository files navigation

Implement a simple blockchain use dpos algorithm

GoDoc

Architecture Design

  • Create a P2P Conn-pool
  • BlockChain Generate
  • Node Manage And Vote
  • Pick Node
  • Write Block On Blockchain

Build

👏 go build -o build/dpos main/dpos.go

RUN

git clone git@github.com:csunny/dpos.git

cd dpos    // 切换到源码路径下
go build main/dpos.go

connect multi peer

./dpos new --port 3000 --secio

Vote

./dpos vote -name QmaxEdbKW4x9mP2vX15zL9fyEsp9b9yV48zwtdrpYddfxe -v 30

Document

Doc

Licence

MIT

About

A Simple DPoS Algorithm, Use go-libp2p implement.

Resources

Readme

License

MIT license

Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks

Languages

  • Go 100.0%