mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 13:46:43 +00:00
Make block numbers non-sequential in test
This commit is contained in:
parent
8a7c9ca61c
commit
90f03874ce
1 changed files with 2 additions and 2 deletions
|
|
@ -248,8 +248,8 @@ func TestChainForkWithWrongBlockNum(t *testing.T) {
|
|||
|
||||
chain1 := makeChainWithDiff(genesis, []int{1, 2, 3}, 10)
|
||||
chain2 := makeChainWithDiff(genesis, []int{4, 5}, 11)
|
||||
chain2[0].Header().Number = big.NewInt(int64(4))
|
||||
chain2[1].Header().Number = big.NewInt(int64(5))
|
||||
chain2[0].Header().Number = big.NewInt(int64(6))
|
||||
chain2[1].Header().Number = big.NewInt(int64(7))
|
||||
|
||||
_, _ = bc.InsertChain(chain1)
|
||||
_, err := bc.InsertChain(chain2)
|
||||
|
|
|
|||
Loading…
Reference in a new issue