mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 18:02:24 +00:00
core/vm/runtime: remove another instance of ttdpassed. Isolating this into its own commit as a reminder to double-check that this doesn't break anything
This commit is contained in:
parent
73edf5f0ce
commit
69f61a006a
1 changed files with 21 additions and 25 deletions
|
|
@ -61,27 +61,26 @@ func setDefaults(cfg *Config) {
|
||||||
cancunTime = uint64(0)
|
cancunTime = uint64(0)
|
||||||
)
|
)
|
||||||
cfg.ChainConfig = ¶ms.ChainConfig{
|
cfg.ChainConfig = ¶ms.ChainConfig{
|
||||||
ChainID: big.NewInt(1),
|
ChainID: big.NewInt(1),
|
||||||
HomesteadBlock: new(big.Int),
|
HomesteadBlock: new(big.Int),
|
||||||
DAOForkBlock: new(big.Int),
|
DAOForkBlock: new(big.Int),
|
||||||
DAOForkSupport: false,
|
DAOForkSupport: false,
|
||||||
EIP150Block: new(big.Int),
|
EIP150Block: new(big.Int),
|
||||||
EIP155Block: new(big.Int),
|
EIP155Block: new(big.Int),
|
||||||
EIP158Block: new(big.Int),
|
EIP158Block: new(big.Int),
|
||||||
ByzantiumBlock: new(big.Int),
|
ByzantiumBlock: new(big.Int),
|
||||||
ConstantinopleBlock: new(big.Int),
|
ConstantinopleBlock: new(big.Int),
|
||||||
PetersburgBlock: new(big.Int),
|
PetersburgBlock: new(big.Int),
|
||||||
IstanbulBlock: new(big.Int),
|
IstanbulBlock: new(big.Int),
|
||||||
MuirGlacierBlock: new(big.Int),
|
MuirGlacierBlock: new(big.Int),
|
||||||
BerlinBlock: new(big.Int),
|
BerlinBlock: new(big.Int),
|
||||||
LondonBlock: new(big.Int),
|
LondonBlock: new(big.Int),
|
||||||
ArrowGlacierBlock: nil,
|
ArrowGlacierBlock: nil,
|
||||||
GrayGlacierBlock: nil,
|
GrayGlacierBlock: nil,
|
||||||
TerminalTotalDifficulty: big.NewInt(0),
|
TerminalTotalDifficulty: big.NewInt(0),
|
||||||
TerminalTotalDifficultyPassed: true,
|
MergeNetsplitBlock: nil,
|
||||||
MergeNetsplitBlock: nil,
|
ShanghaiTime: &shanghaiTime,
|
||||||
ShanghaiTime: &shanghaiTime,
|
CancunTime: &cancunTime}
|
||||||
CancunTime: &cancunTime}
|
|
||||||
}
|
}
|
||||||
if cfg.Difficulty == nil {
|
if cfg.Difficulty == nil {
|
||||||
cfg.Difficulty = new(big.Int)
|
cfg.Difficulty = new(big.Int)
|
||||||
|
|
@ -109,10 +108,7 @@ func setDefaults(cfg *Config) {
|
||||||
if cfg.BlobBaseFee == nil {
|
if cfg.BlobBaseFee == nil {
|
||||||
cfg.BlobBaseFee = big.NewInt(params.BlobTxMinBlobGasprice)
|
cfg.BlobBaseFee = big.NewInt(params.BlobTxMinBlobGasprice)
|
||||||
}
|
}
|
||||||
// Merge indicators
|
cfg.Random = &(common.Hash{})
|
||||||
if t := cfg.ChainConfig.ShanghaiTime; cfg.ChainConfig.TerminalTotalDifficultyPassed || (t != nil && *t == 0) {
|
|
||||||
cfg.Random = &(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