We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf0a5db commit 761d25cCopy full SHA for 761d25c
op-program/client/l2/canon.go
@@ -48,8 +48,9 @@ func (o *CanonicalBlockHeaderOracle) GetHeaderByNumber(n uint64) *types.Header {
48
49
h := o.earliestIndexedBlock
50
for h.Number.Uint64() > n {
51
- h = o.blockByHashFn(h.ParentHash).Header()
52
- o.hashByNum[h.Number.Uint64()] = h.Hash()
+ hash := h.ParentHash
+ h = o.blockByHashFn(hash).Header()
53
+ o.hashByNum[h.Number.Uint64()] = hash
54
}
55
o.earliestIndexedBlock = h
56
return h
0 commit comments