all: use EmptyUncleHash, EmptyCodeHash instead of raw value (#29134)
This commit is contained in:
parent
5a1e8a6547
commit
679a27a2b3
@ -648,7 +648,7 @@ The server should reject the request.`,
|
||||
0, 1, 2, 3, 4, 5, 6, 7, 8, 0, 1, 2, 3, 4, 5, 6, 7, 8, 0, 1, 2, 3, 4, 5, 6, 7, 8}},
|
||||
},
|
||||
nBytes: 5000,
|
||||
expHashes: []common.Hash{common.HexToHash("0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470")},
|
||||
expHashes: []common.Hash{types.EmptyCodeHash},
|
||||
},
|
||||
|
||||
{
|
||||
|
@ -196,7 +196,7 @@ func TestEIP2718BlockEncoding(t *testing.T) {
|
||||
func TestUncleHash(t *testing.T) {
|
||||
uncles := make([]*Header, 0)
|
||||
h := CalcUncleHash(uncles)
|
||||
exp := common.HexToHash("1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347")
|
||||
exp := EmptyUncleHash
|
||||
if h != exp {
|
||||
t.Fatalf("empty uncle hash is wrong, got %x != %x", h, exp)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user