add todo and add golint script

pull/16/head
Minh Doan 6 years ago
parent 843145ce1d
commit 26f31e5fbe
  1. 7
      README.md
  2. 3
      lint_before_submit.sh
  3. 1
      node/node.go

@ -35,7 +35,10 @@ Make sure you the following command and make sure everything passed before submi
./test_before_submit.sh
'''
## Linting
Make sure you the following command and make sure everything passes golint.
'''
./lint_before_submit.sh
'''

@ -0,0 +1,3 @@
go get -u golang.org/x/lint/golint
golint ./...

@ -118,6 +118,7 @@ func NewNode(consensus *consensus.Consensus) Node {
node.BlockChannel = make(chan blockchain.Block)
// Genesis Block
// TODO(minh): Use or implement new function in blockchain package for this.
genesisBlock := &blockchain.Blockchain{}
genesisBlock.Blocks = make([]*blockchain.Block, 0)
coinbaseTx := blockchain.NewCoinbaseTX("harmony", "1", node.Consensus.ShardID)

Loading…
Cancel
Save