Skip to content

Commit

Permalink
P-Chain merkledb -- remove caches (#2392)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Laine authored Dec 1, 2023
1 parent 0ab0c29 commit 3ea16e1
Show file tree
Hide file tree
Showing 8 changed files with 91 additions and 427 deletions.
3 changes: 0 additions & 3 deletions vms/platformvm/block/builder/helpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,14 +243,11 @@ func defaultState(
) state.State {
require := require.New(t)

execCfg, _ := config.GetExecutionConfig([]byte(`{}`))
genesisBytes := buildGenesisTest(t, ctx)
state, err := state.New(
db,
genesisBytes,
prometheus.NewRegistry(),
validators,
execCfg,
ctx,
metrics.Noop,
rewards,
Expand Down
3 changes: 0 additions & 3 deletions vms/platformvm/block/executor/helpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,13 +269,10 @@ func defaultState(
rewards reward.Calculator,
) state.State {
genesisBytes := buildGenesisTest(ctx)
execCfg, _ := config.GetExecutionConfig([]byte(`{}`))
state, err := state.New(
db,
genesisBytes,
prometheus.NewRegistry(),
validators,
execCfg,
ctx,
metrics.Noop,
rewards,
Expand Down
Loading

0 comments on commit 3ea16e1

Please sign in to comment.