From 2dc5a8173063f1d668c34793c9f9f25b5505aba3 Mon Sep 17 00:00:00 2001 From: Delweng Zheng Date: Thu, 5 Jul 2018 10:18:13 +0800 Subject: [PATCH] consensus: get rid of blockPeriod, use 15 directly --- consensus/clique/snapshot_test.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/consensus/clique/snapshot_test.go b/consensus/clique/snapshot_test.go index d651fbd6ed..5ac730c9e7 100644 --- a/consensus/clique/snapshot_test.go +++ b/consensus/clique/snapshot_test.go @@ -37,9 +37,6 @@ type testerVote struct { auth bool } -// blockPeriod is the default minimum difference between two consecutive block's timestamps -var blockPeriod = uint64(15) - // testerAccountPool is a pool to maintain currently active tester accounts, // mapped from textual names used in the tests below to actual Ethereum private // keys capable of signing transactions. @@ -363,7 +360,7 @@ func TestVoting(t *testing.T) { for j, vote := range tt.votes { headers[j] = &types.Header{ Number: big.NewInt(int64(j) + 1), - Time: big.NewInt(int64(j) * int64(blockPeriod)), + Time: big.NewInt(int64(j) * 15), Coinbase: accounts.address(vote.voted), Extra: make([]byte, extraVanity+extraSeal), }