Add comments about gas metering

extensions
Volodymyr Shymanskyy 3 years ago
parent 48a4bdc23d
commit 695ed21b56

@ -16,7 +16,11 @@
#include "m3_api_libc.h"
#include "m3_api_tracer.h"
// Gas metering/limit only applies to pre-instrumented modules
/*
* NOTE: Gas metering/limit only applies to pre-instrumented modules.
* You can generate a metered version from any wasm file automatically, using
* https://github.com/ewasm/wasm-metering
*/
#define GAS_LIMIT 2000000000000
#define MAX_MODULES 16

@ -3,6 +3,12 @@
import wasm3
import os, time
"""
NOTE: Gas metering/limit only applies to pre-instrumented modules.
You can generate a metered version from any wasm file automatically, using
https://github.com/ewasm/wasm-metering
"""
scriptpath = os.path.dirname(os.path.realpath(__file__))
wasm_fn = os.path.join(scriptpath, "./wasm/coremark-metered.wasm")

Loading…
Cancel
Save