mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 02:12:23 +00:00
update test chain configs which aren't merged to have a known TTD (max possible). Otherwise, we cannot create the consensus engine if ttd==nil.
This commit is contained in:
parent
58018396af
commit
b374378446
1 changed files with 4 additions and 3 deletions
|
|
@ -18,6 +18,7 @@ package params
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"github.com/ethereum/go-ethereum/common/math"
|
||||||
"math/big"
|
"math/big"
|
||||||
|
|
||||||
"github.com/ethereum/go-ethereum/common"
|
"github.com/ethereum/go-ethereum/common"
|
||||||
|
|
@ -127,12 +128,12 @@ var (
|
||||||
LondonBlock: big.NewInt(0),
|
LondonBlock: big.NewInt(0),
|
||||||
ArrowGlacierBlock: big.NewInt(0),
|
ArrowGlacierBlock: big.NewInt(0),
|
||||||
GrayGlacierBlock: big.NewInt(0),
|
GrayGlacierBlock: big.NewInt(0),
|
||||||
|
TerminalTotalDifficulty: big.NewInt(math.MaxInt64),
|
||||||
MergeNetsplitBlock: nil,
|
MergeNetsplitBlock: nil,
|
||||||
ShanghaiTime: nil,
|
ShanghaiTime: nil,
|
||||||
CancunTime: nil,
|
CancunTime: nil,
|
||||||
PragueTime: nil,
|
PragueTime: nil,
|
||||||
VerkleTime: nil,
|
VerkleTime: nil,
|
||||||
TerminalTotalDifficulty: nil,
|
|
||||||
Ethash: new(EthashConfig),
|
Ethash: new(EthashConfig),
|
||||||
Clique: nil,
|
Clique: nil,
|
||||||
}
|
}
|
||||||
|
|
@ -181,7 +182,7 @@ var (
|
||||||
CancunTime: nil,
|
CancunTime: nil,
|
||||||
PragueTime: nil,
|
PragueTime: nil,
|
||||||
VerkleTime: nil,
|
VerkleTime: nil,
|
||||||
TerminalTotalDifficulty: nil,
|
TerminalTotalDifficulty: big.NewInt(math.MaxInt64),
|
||||||
Ethash: nil,
|
Ethash: nil,
|
||||||
Clique: &CliqueConfig{Period: 0, Epoch: 30000},
|
Clique: &CliqueConfig{Period: 0, Epoch: 30000},
|
||||||
}
|
}
|
||||||
|
|
@ -210,7 +211,7 @@ var (
|
||||||
CancunTime: nil,
|
CancunTime: nil,
|
||||||
PragueTime: nil,
|
PragueTime: nil,
|
||||||
VerkleTime: nil,
|
VerkleTime: nil,
|
||||||
TerminalTotalDifficulty: nil,
|
TerminalTotalDifficulty: big.NewInt(math.MaxInt64),
|
||||||
Ethash: new(EthashConfig),
|
Ethash: new(EthashConfig),
|
||||||
Clique: nil,
|
Clique: nil,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue