MCPcopy Create free account
hub / github.com/LUX-Core/lux / execute

Method execute

src/cpp-ethereum/libevm/JitVM.cpp:275–284  ·  view source on GitHub ↗

Handy wrapper for evm_execute().

Source from the content-addressed store, hash-verified

273
274 /// Handy wrapper for evm_execute().
275 Result execute(ExtVMFace& _ext, int64_t gas)
276 {
277 auto env = reinterpret_cast<evm_env*>(&_ext);
278 auto mode = JitVM::scheduleToMode(_ext.evmSchedule());
279 return Result{m_instance->execute(
280 m_instance, env, mode, toEvmC(_ext.codeHash), _ext.code.data(),
281 _ext.code.size(), gas, _ext.data.data(), _ext.data.size(),
282 toEvmC(_ext.value)
283 )};
284 }
285
286 bool isCodeReady(evm_mode _mode, h256 _codeHash)
287 {

Callers 5

BOOST_AUTO_TEST_CASEFunction · 0.45
executeTransactionMethod · 0.45
traceTransactionMethod · 0.45
admin_eth_vmTraceMethod · 0.45
execMethod · 0.45

Calls 4

toEvmCFunction · 0.85
evmScheduleMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by 2

BOOST_AUTO_TEST_CASEFunction · 0.36
executeTransactionMethod · 0.36