Merge pull request #44 from sei-protocol/tony/allow-override-block-hash

allow overwriting block hash
This commit is contained in:
codchen 2025-03-31 17:52:40 +08:00 committed by GitHub
commit ddf33e4fbd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -493,6 +493,11 @@ func (b *Block) Hash() common.Hash {
return v
}
// Used by tracer/simulation. Should never be called in actual execution.
func (b *Block) OverwriteHash(h common.Hash) {
b.hash.Store(h)
}
type Blocks []*Block
// HeaderParentHashFromRLP returns the parentHash of an RLP-encoded