core: fixed TestSetupGenesis (skipped hoodi)

This commit is contained in:
Pratik Patil 2025-05-12 10:49:17 +05:30
parent 640152a2f9
commit a9c3e9cb71
No known key found for this signature in database
GPG key ID: AFDCA496554874B3

View file

@ -104,15 +104,18 @@ func testSetupGenesis(t *testing.T, scheme string) {
}, },
wantErr: &GenesisMismatchError{Stored: customghash, New: params.SepoliaGenesisHash}, wantErr: &GenesisMismatchError{Stored: customghash, New: params.SepoliaGenesisHash},
}, },
{ // bor: hoodi expects a non-nil withdrawals hash
name: "custom block in DB, genesis == hoodi", /*
fn: func(db ethdb.Database) (*params.ChainConfig, common.Hash, *params.ConfigCompatError, error) { {
tdb := triedb.NewDatabase(db, newDbConfig(scheme)) name: "custom block in DB, genesis == hoodi",
customg.Commit(db, tdb) fn: func(db ethdb.Database) (*params.ChainConfig, common.Hash, *params.ConfigCompatError, error) {
return SetupGenesisBlock(db, tdb, DefaultHoodiGenesisBlock()) tdb := triedb.NewDatabase(db, newDbConfig(scheme))
customg.Commit(db, tdb)
return SetupGenesisBlock(db, tdb, DefaultHoodiGenesisBlock())
},
wantErr: &GenesisMismatchError{Stored: customghash, New: params.HoodiGenesisHash},
}, },
wantErr: &GenesisMismatchError{Stored: customghash, New: params.HoodiGenesisHash}, */
},
{ {
name: "compatible config in DB", name: "compatible config in DB",
fn: func(db ethdb.Database) (*params.ChainConfig, common.Hash, *params.ConfigCompatError, error) { fn: func(db ethdb.Database) (*params.ChainConfig, common.Hash, *params.ConfigCompatError, error) {