mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-04-26 19:42:23 +00:00
core/vm/runtime: don't overwrite user-provided Random
This commit is contained in:
parent
b635e0632c
commit
f271a2933a
1 changed files with 3 additions and 1 deletions
|
|
@ -109,7 +109,9 @@ func setDefaults(cfg *Config) {
|
||||||
if cfg.BlobBaseFee == nil {
|
if cfg.BlobBaseFee == nil {
|
||||||
cfg.BlobBaseFee = big.NewInt(params.BlobTxMinBlobGasprice)
|
cfg.BlobBaseFee = big.NewInt(params.BlobTxMinBlobGasprice)
|
||||||
}
|
}
|
||||||
cfg.Random = &(common.Hash{})
|
if cfg.Random == nil {
|
||||||
|
cfg.Random = new(common.Hash)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Execute executes the code using the input as call data during the execution.
|
// Execute executes the code using the input as call data during the execution.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue