mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
replace goerli with sepolia in testSetupGenesis
This commit is contained in:
parent
096f389eda
commit
7a4bd06104
1 changed files with 11 additions and 0 deletions
|
|
@ -95,6 +95,17 @@ func testSetupGenesis(t *testing.T, scheme string) {
|
||||||
wantHash: customghash,
|
wantHash: customghash,
|
||||||
wantConfig: customg.Config,
|
wantConfig: customg.Config,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: "custom block in DB, genesis == sepolia",
|
||||||
|
fn: func(db ethdb.Database) (*params.ChainConfig, common.Hash, error) {
|
||||||
|
tdb := triedb.NewDatabase(db, newDbConfig(scheme))
|
||||||
|
customg.Commit(db, tdb)
|
||||||
|
return SetupGenesisBlock(db, tdb, DefaultSepoliaGenesisBlock())
|
||||||
|
},
|
||||||
|
wantErr: &GenesisMismatchError{Stored: customghash, New: params.SepoliaGenesisHash},
|
||||||
|
wantHash: params.SepoliaGenesisHash,
|
||||||
|
wantConfig: params.SepoliaChainConfig,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: "compatible config in DB",
|
name: "compatible config in DB",
|
||||||
fn: func(db ethdb.Database) (*params.ChainConfig, common.Hash, error) {
|
fn: func(db ethdb.Database) (*params.ChainConfig, common.Hash, error) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue