From 787e4f87ae76bae6ba3e9f8d707963d0472932a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Bylica?= Date: Sun, 21 Oct 2018 23:17:15 +0200 Subject: [PATCH] code/vm: Log EVMC capabilities --- core/vm/evmc.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/vm/evmc.go b/core/vm/evmc.go index c0473c99e7c0..0fd389cec09c 100644 --- a/core/vm/evmc.go +++ b/core/vm/evmc.go @@ -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)