Versions in this module Expand all Collapse all v0 v0.2.0 Dec 12, 2019 v0.1.0 Nov 23, 2018 Changes in this version + const BPCount + const DefaultVote + const FileName + var BlockChain []Block + var NewNode = cli.Command + func CaculateBlockHash(block Block) string + func CaculateHash(s string) string + func HandleStream(s net.Stream) + func IsBlockValid(newBlock, oldBlock Block) bool + func MakeBasicHost(listenPort int, secio bool, randseed int64) (host.Host, error) + func PickWinner() (bp string) + func Run(ctx *cli.Context) error + func SavePeer(name string) + type Block struct + BPM int + Hash string + Index int + PrevHash string + Timestamp string + func GenerateBlock(oldBlock Block, BPM int, address string) (Block, error) + type Validator struct