From e32ec18a0dfcb772ab690cc27e633d348e576548 Mon Sep 17 00:00:00 2001 From: meows Date: Tue, 19 Sep 2023 12:22:41 -0600 Subject: [PATCH] core: fix test by using actual trie db 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 --- core/genesis_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/genesis_test.go b/core/genesis_test.go index 07fc4089fc..21343b81c9 100644 --- a/core/genesis_test.go +++ b/core/genesis_test.go @@ -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, @@ -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},