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: 3 months ago
JSON representation
A Simple DPoS Algorithm, Use go-libp2p implement.
- Host: GitHub
- URL: https://github.com/csunny/dpos
- Owner: csunny
- License: mit
- Created: 2018-09-04T13:16:11.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-06-10T15:47:11.000Z (about 3 years ago)
- Last Synced: 2025-09-07T22:44:43.698Z (9 months ago)
- Topics: blockchain, dpos, libp2p, p2p-network
- Language: Go
- Homepage:
- Size: 16.9 MB
- Stars: 64
- Watchers: 5
- Forks: 25
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Implement a simple blockchain use dpos algorithm
[](https://github.com/csunny/dpos/issues)
[](https://github.com/csunny/dpos/star)
[](https://github.com/csunny/dpos/fork)
[](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://github.com/csunny/dpos/blob/master/LICENSE)
MIT