Skip to content

Commit

Permalink
fix to use a single vm (#282)
Browse files Browse the repository at this point in the history
  • Loading branch information
beer-1 authored Oct 10, 2024
1 parent 6299f61 commit 8414620
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion x/move/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ func NewKeeper(
moveConfig.ContractSimulationGasLimit = moveconfig.DefaultContractSimulationGasLimit
}

vmCount := 10
// use only one VM for now because we need to clear the cache on every module upgrade.
// but if we have multiple VMs, only the VM that executed the module upgrade will have the cache cleared.
vmCount := 1
moveVMIdx := uint64(0)
vms := make([]types.VMEngine, vmCount)
for i := 0; i < vmCount; i++ {
Expand Down

0 comments on commit 8414620

Please sign in to comment.