Skip to content

Latest commit

 

History

History
43 lines (24 loc) · 882 Bytes

README.md

File metadata and controls

43 lines (24 loc) · 882 Bytes

go-coin

Experimental Blockchain in Go

Quick Start

Install

go install ./...

Generate an address

coin address

Initialize Blockchain

coin init --address <address for genesis reward>

Send coins

coin send --from <sender address> --to <receiver address> --amount <coins>

Run multiple nodes locally

Create an initial Blockchain

coin init --address <address for genesis reward>

Copy the Blockchain for each node

cp blockchain_1.db blockchain_3000.db
cp blockchain_1.db blockchain_3001.db

Start a central node

coin server --address <address for miner rewards> --node 3000

Central node is running at localhost:3000

Start miner node

coin server --address <address for miner rewards> --node 3001

Credits

Based on this great blog post