Skip to content

Commit

Permalink
Merge pull request #5439 from onflow/janez/fix-fvm-ctx-evm-setting
Browse files Browse the repository at this point in the history
Add DefaultFVMOptions to verification builder
  • Loading branch information
janezpodhostnik authored Feb 22, 2024
2 parents 607d0fe + 11651cc commit f6d50be
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/verification_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (
"github.com/onflow/flow-go/engine/common/follower"
followereng "github.com/onflow/flow-go/engine/common/follower"
commonsync "github.com/onflow/flow-go/engine/common/synchronization"
"github.com/onflow/flow-go/engine/execution/computation"
"github.com/onflow/flow-go/engine/verification/assigner"
"github.com/onflow/flow-go/engine/verification/assigner/blockconsumer"
"github.com/onflow/flow-go/engine/verification/fetcher"
Expand Down Expand Up @@ -194,7 +195,11 @@ func (v *VerificationNodeBuilder) LoadComponentsAndModules() {
[]fvm.Option{fvm.WithLogger(node.Logger)},
node.FvmOptions...,
)

// TODO(JanezP): cleanup creation of fvm context github.com/onflow/flow-go/issues/5249
fvmOptions = append(fvmOptions, computation.DefaultFVMOptions(node.RootChainID, false, false)...)
vmCtx := fvm.NewContext(fvmOptions...)

chunkVerifier := chunks.NewChunkVerifier(vm, vmCtx, node.Logger)
approvalStorage := badger.NewResultApprovals(node.Metrics.Cache, node.DB)
verifierEng, err = verifier.New(
Expand Down

0 comments on commit f6d50be

Please sign in to comment.