Skip to content

Commit

Permalink
always recompile module when recompiling native targets to validate m…
Browse files Browse the repository at this point in the history
…odule hash
  • Loading branch information
magicxyyz committed Nov 13, 2024
1 parent 452ecb3 commit 233c324
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arbos/programs/native.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ func getLocalAsm(statedb vm.StateDB, moduleHash common.Hash, addressForLogging c

targets := statedb.Database().WasmTargets()
// we know program is activated, so it must be in correct version and not use too much memory
moduleActivationMandatory := false
moduleActivationMandatory := true // TODO: refactor the parameter, always set to true
info, asmMap, err := activateProgramInternal(addressForLogging, codehash, wasm, pagelimit, program.version, zeroArbosVersion, debugMode, &zeroGas, targets, moduleActivationMandatory)
if err != nil {
log.Error("failed to reactivate program", "address", addressForLogging, "expected moduleHash", moduleHash, "err", err)
Expand Down

0 comments on commit 233c324

Please sign in to comment.