An open API service indexing awesome lists of open source software.

https://github.com/csunny/dpos

A Simple DPoS Algorithm, Use go-libp2p implement.
https://github.com/csunny/dpos

blockchain dpos libp2p p2p-network

Last synced: about 1 month ago
JSON representation

A Simple DPoS Algorithm, Use go-libp2p implement.

Awesome Lists containing this project

README

          

# Implement a simple blockchain use dpos algorithm

[![](https://img.shields.io/github/issues/csunny/dpos)](https://github.com/csunny/dpos/issues)
[![](https://img.shields.io/github/stars/csunny/dpos)](https://github.com/csunny/dpos/star)
[![](https://img.shields.io/github/forks/csunny/dpos)](https://github.com/csunny/dpos/fork)
[![GoDoc](https://img.shields.io/badge/GoDoc-Reference-green)](https://godoc.org/github.com/csunny/dpos)
## 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](https://xiaozhuanlan.com/topic/3245810967)

# Licence
[![](https://img.shields.io/github/license/csunny/dpos)](https://github.com/csunny/dpos/blob/master/LICENSE)

MIT