mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 06:36:43 +00:00
Merge pull request #44 from sei-protocol/tony/allow-override-block-hash
allow overwriting block hash
This commit is contained in:
commit
ddf33e4fbd
1 changed files with 20 additions and 15 deletions
|
|
@ -493,6 +493,11 @@ func (b *Block) Hash() common.Hash {
|
||||||
return v
|
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
|
type Blocks []*Block
|
||||||
|
|
||||||
// HeaderParentHashFromRLP returns the parentHash of an RLP-encoded
|
// HeaderParentHashFromRLP returns the parentHash of an RLP-encoded
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue