Skip to content

Commit

Permalink
fix legacy pool test
Browse files Browse the repository at this point in the history
  • Loading branch information
bharath-123 committed Oct 9, 2024
1 parent a8bbaad commit 676446f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/txpool/legacypool/legacypool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ func TestRemoveTxSanity(t *testing.T) {

addr := crypto.PubkeyToAddress(key.PublicKey)
resetState := func() {
statedb, _ := state.New(types.EmptyRootHash, state.NewDatabase(rawdb.NewMemoryDatabase()), nil)
statedb, _ := state.New(types.EmptyRootHash, state.NewDatabaseForTesting())
statedb.AddBalance(addr, uint256.NewInt(100000000000000), tracing.BalanceChangeUnspecified)

pool.chain = newTestBlockChain(pool.chainconfig, 1000000, statedb, new(event.Feed))
Expand Down

0 comments on commit 676446f

Please sign in to comment.