We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 53e3f44 commit e9e1cb0Copy full SHA for e9e1cb0
eth/tracers/internal/tracetest/util.go
@@ -47,6 +47,11 @@ func (c *callContext) toBlockContext(genesis *core.Genesis) vm.BlockContext {
47
if genesis.Config.IsLondon(context.BlockNumber) {
48
context.BaseFee = (*big.Int)(c.BaseFee)
49
}
50
+
51
+ if genesis.Config.TerminalTotalDifficulty != nil && genesis.Config.TerminalTotalDifficulty.Sign() == 0 {
52
+ context.Random = &genesis.Mixhash
53
+ }
54
55
if genesis.ExcessBlobGas != nil && genesis.BlobGasUsed != nil {
56
excessBlobGas := eip4844.CalcExcessBlobGas(*genesis.ExcessBlobGas, *genesis.BlobGasUsed)
57
context.BlobBaseFee = eip4844.CalcBlobFee(excessBlobGas)
0 commit comments