mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
fix: activate Shanghai in test
This commit is contained in:
parent
9a0784d68a
commit
e2ac75246e
2 changed files with 4 additions and 3 deletions
|
|
@ -344,7 +344,6 @@ func SetupGenesisBlockWithOverride(db ethdb.Database, triedb *trie.Database, gen
|
||||||
// We have the genesis block in database(perhaps in ancient database)
|
// We have the genesis block in database(perhaps in ancient database)
|
||||||
// but the corresponding state is missing.
|
// but the corresponding state is missing.
|
||||||
header := rawdb.ReadHeader(db, stored, 0)
|
header := rawdb.ReadHeader(db, stored, 0)
|
||||||
|
|
||||||
if header.Root != types.EmptyRootHash && !rawdb.HasLegacyTrieNode(db, header.Root) {
|
if header.Root != types.EmptyRootHash && !rawdb.HasLegacyTrieNode(db, header.Root) {
|
||||||
if genesis == nil {
|
if genesis == nil {
|
||||||
genesis = DefaultGenesisBlock()
|
genesis = DefaultGenesisBlock()
|
||||||
|
|
|
||||||
|
|
@ -437,8 +437,9 @@ var (
|
||||||
|
|
||||||
func TestProcessVerkle(t *testing.T) {
|
func TestProcessVerkle(t *testing.T) {
|
||||||
var (
|
var (
|
||||||
cancuntime uint64 = 0
|
cancuntime uint64 = 0
|
||||||
config = ¶ms.ChainConfig{
|
shanghaiTime uint64 = 0
|
||||||
|
config = ¶ms.ChainConfig{
|
||||||
ChainID: big.NewInt(1),
|
ChainID: big.NewInt(1),
|
||||||
HomesteadBlock: big.NewInt(0),
|
HomesteadBlock: big.NewInt(0),
|
||||||
EIP150Block: big.NewInt(0),
|
EIP150Block: big.NewInt(0),
|
||||||
|
|
@ -452,6 +453,7 @@ func TestProcessVerkle(t *testing.T) {
|
||||||
BerlinBlock: big.NewInt(0),
|
BerlinBlock: big.NewInt(0),
|
||||||
LondonBlock: big.NewInt(0),
|
LondonBlock: big.NewInt(0),
|
||||||
Ethash: new(params.EthashConfig),
|
Ethash: new(params.EthashConfig),
|
||||||
|
ShanghaiTime: &shanghaiTime,
|
||||||
CancunTime: &cancuntime,
|
CancunTime: &cancuntime,
|
||||||
}
|
}
|
||||||
signer = types.LatestSigner(config)
|
signer = types.LatestSigner(config)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue