mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 02:12:23 +00:00
consensus: get rid of blockPeriod, use 15 directly
This commit is contained in:
parent
056f5dd9b5
commit
2dc5a81730
1 changed files with 1 additions and 4 deletions
|
|
@ -37,9 +37,6 @@ type testerVote struct {
|
||||||
auth bool
|
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,
|
// testerAccountPool is a pool to maintain currently active tester accounts,
|
||||||
// mapped from textual names used in the tests below to actual Ethereum private
|
// mapped from textual names used in the tests below to actual Ethereum private
|
||||||
// keys capable of signing transactions.
|
// keys capable of signing transactions.
|
||||||
|
|
@ -363,7 +360,7 @@ func TestVoting(t *testing.T) {
|
||||||
for j, vote := range tt.votes {
|
for j, vote := range tt.votes {
|
||||||
headers[j] = &types.Header{
|
headers[j] = &types.Header{
|
||||||
Number: big.NewInt(int64(j) + 1),
|
Number: big.NewInt(int64(j) + 1),
|
||||||
Time: big.NewInt(int64(j) * int64(blockPeriod)),
|
Time: big.NewInt(int64(j) * 15),
|
||||||
Coinbase: accounts.address(vote.voted),
|
Coinbase: accounts.address(vote.voted),
|
||||||
Extra: make([]byte, extraVanity+extraSeal),
|
Extra: make([]byte, extraVanity+extraSeal),
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue