Skip to content

Commit

Permalink
code/vm: Log EVMC capabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
chfast committed Oct 25, 2018
1 parent 840a880 commit 787e4f8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/vm/evmc.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ func createVM(config string) *evmc.Instance {
}
}
}

evm1Cap := evmcInstance.HasCapability(evmc.CapabilityEVM1)
ewasmCap := evmcInstance.HasCapability(evmc.CapabilityEWASM)
log.Info("EVMC VM capabilities", "evm1", evm1Cap, "ewasm", ewasmCap)

evmcConfig = config // Remember the config.
} else if evmcConfig != config {
log.Error("New EVMC VM requested", "newconfig", config, "oldconfig", evmcConfig)
Expand Down

0 comments on commit 787e4f8

Please sign in to comment.