eth/catalyst: return 0x0 on Invalid block on top of pow block (#25006)
This commit is contained in:
@@ -647,7 +647,8 @@ func TestEmptyBlocks(t *testing.T) {
|
||||
if status.Status != beacon.INVALID {
|
||||
t.Errorf("invalid status: expected INVALID got: %v", status.Status)
|
||||
}
|
||||
expected := commonAncestor.Hash()
|
||||
// Expect 0x0 on INVALID block on top of PoW block
|
||||
expected := common.Hash{}
|
||||
if !bytes.Equal(status.LatestValidHash[:], expected[:]) {
|
||||
t.Fatalf("invalid LVH: got %v want %v", status.LatestValidHash, expected)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user