mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 14:46:42 +00:00
allow overwriting block hash
This commit is contained in:
parent
7e26589b67
commit
f7ed2af11e
1 changed files with 20 additions and 15 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue