Skip to content

Commit

Permalink
core: fix test by using actual trie db
Browse files Browse the repository at this point in the history
This was typo from a bad merge before.
Now should be fixed.

Date: 2023-09-19 12:22:41-06:00
Signed-off-by: meows <[email protected]>
  • Loading branch information
meowsbits committed Sep 19, 2023
1 parent 0c1b0ed commit e32ec18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/genesis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func testSetupGenesis(t *testing.T, scheme string) {
name: "custom block in DB, genesis == nil",
fn: func(db ethdb.Database) (ctypes.ChainConfigurator, common.Hash, error) {
tdb := trie.NewDatabase(db, newDbConfig(scheme))
MustCommitGenesis(db, trie.NewDatabase(db, nil), &customg)
MustCommitGenesis(db, tdb, &customg)
return SetupGenesisBlock(db, tdb, nil)
},
wantHash: customghash,
Expand All @@ -145,7 +145,7 @@ func testSetupGenesis(t *testing.T, scheme string) {
name: "custom block in DB, genesis == goerli",
fn: func(db ethdb.Database) (ctypes.ChainConfigurator, common.Hash, error) {
tdb := trie.NewDatabase(db, newDbConfig(scheme))
MustCommitGenesis(db, trie.NewDatabase(db, nil), &customg)
MustCommitGenesis(db, tdb, &customg)
return SetupGenesisBlock(db, tdb, params.DefaultGoerliGenesisBlock())
},
wantErr: &genesisT.GenesisMismatchError{Stored: customghash, New: params.GoerliGenesisHash},
Expand Down

0 comments on commit e32ec18

Please sign in to comment.