Update BlockChain to record NodeInfo (#95)

This commit is contained in:
Matt K
2017-12-07 13:32:16 -06:00
committed by GitHub
parent 18163f970e
commit 921bde1089
21 changed files with 276 additions and 45 deletions
+1
View File
@@ -4,6 +4,7 @@ import "math/big"
type Blockchain interface {
GetBlockByNumber(blockNumber int64) Block
Node() Node
SubscribeToBlocks(blocks chan Block)
StartListening()
StopListening()
+6
View File
@@ -0,0 +1,6 @@
package core
type Node struct {
GenesisBlock string
NetworkId float64
}