mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-10 22:13:47 +00:00
new: assert block authors
This commit is contained in:
parent
5b324f4b84
commit
09e62ca35c
1 changed files with 10 additions and 0 deletions
|
|
@ -371,4 +371,14 @@ func TestForkWithTwoNodeNet(t *testing.T) {
|
||||||
assert.NotEqual(t, blockHeaderVal2.Hash(), blockHeaderVal3.Hash())
|
assert.NotEqual(t, blockHeaderVal2.Hash(), blockHeaderVal3.Hash())
|
||||||
assert.NotEqual(t, blockHeaderVal2.Time, blockHeaderVal3.Time)
|
assert.NotEqual(t, blockHeaderVal2.Time, blockHeaderVal3.Time)
|
||||||
|
|
||||||
|
author2, err := nodes[0].Engine().Author(blockHeaderVal2)
|
||||||
|
if err != nil {
|
||||||
|
log.Error("Error occured while fetching author", "err", err)
|
||||||
|
}
|
||||||
|
author3, err := nodes[1].Engine().Author(blockHeaderVal3)
|
||||||
|
if err != nil {
|
||||||
|
log.Error("Error occured while fetching author", "err", err)
|
||||||
|
}
|
||||||
|
assert.NotEqual(t, author2, author3)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue