diff options
author | Jimmy Hu <jimmy.hu@dexon.org> | 2018-08-09 14:12:15 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-09 14:12:15 +0800 |
commit | d28cc2c0cf87061fed9356509a28a307b9f55943 (patch) | |
tree | 09ac5ccd9ec721072f2c653e8201c1487e9e265c /core/consensus_test.go | |
parent | 7326f9722771633f3d137944c814544888a7a87f (diff) | |
download | dexon-consensus-d28cc2c0cf87061fed9356509a28a307b9f55943.tar.gz dexon-consensus-d28cc2c0cf87061fed9356509a28a307b9f55943.tar.zst dexon-consensus-d28cc2c0cf87061fed9356509a28a307b9f55943.zip |
core: Add Block.IsGenesis() and set Block.ParentHash to 0 in genesis block. (#37)
Diffstat (limited to 'core/consensus_test.go')
-rw-r--r-- | core/consensus_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/consensus_test.go b/core/consensus_test.go index 7ce06e9..1544818 100644 --- a/core/consensus_test.go +++ b/core/consensus_test.go @@ -40,7 +40,7 @@ func (s *ConsensusTestSuite) prepareGenesisBlock( hash := common.NewRandomHash() block := &types.Block{ ProposerID: proposerID, - ParentHash: hash, + ParentHash: common.Hash{}, Hash: hash, Height: 0, Acks: make(map[common.Hash]struct{}), |