aboutsummaryrefslogtreecommitdiffstats
path: root/core/consensus_test.go
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2018-08-09 14:12:15 +0800
committerGitHub <noreply@github.com>2018-08-09 14:12:15 +0800
commitd28cc2c0cf87061fed9356509a28a307b9f55943 (patch)
tree09ac5ccd9ec721072f2c653e8201c1487e9e265c /core/consensus_test.go
parent7326f9722771633f3d137944c814544888a7a87f (diff)
downloadtangerine-consensus-d28cc2c0cf87061fed9356509a28a307b9f55943.tar
tangerine-consensus-d28cc2c0cf87061fed9356509a28a307b9f55943.tar.gz
tangerine-consensus-d28cc2c0cf87061fed9356509a28a307b9f55943.tar.bz2
tangerine-consensus-d28cc2c0cf87061fed9356509a28a307b9f55943.tar.lz
tangerine-consensus-d28cc2c0cf87061fed9356509a28a307b9f55943.tar.xz
tangerine-consensus-d28cc2c0cf87061fed9356509a28a307b9f55943.tar.zst
tangerine-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.go2
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{}),