mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-11 21:04:11 +00:00
renamed states*.nim => v2states*.nim
why: these files provide part of the externally accessible interface provided by vm_state*.nim. so the new filename indicates that the source code belongs to vm2 (rather than vm).
This commit is contained in:
parent
7b6767c4a3
commit
f159e67bba
@ -15,7 +15,7 @@ import
|
|||||||
sets, eth/[common, keys],
|
sets, eth/[common, keys],
|
||||||
../constants, ../errors,
|
../constants, ../errors,
|
||||||
./interpreter/[v2opcode_values, gas_meter, gas_costs, v2forks],
|
./interpreter/[v2opcode_values, gas_meter, gas_costs, v2forks],
|
||||||
./code_stream, ./memory, ./message, ./stack, ./v2types, ./state,
|
./code_stream, ./memory, ./message, ./stack, ./v2types, ./v2state,
|
||||||
../db/[accounts_cache, db_chain],
|
../db/[accounts_cache, db_chain],
|
||||||
../utils/header, ./precompiles,
|
../utils/header, ./precompiles,
|
||||||
./transaction_tracer, ../utils
|
./transaction_tracer, ../utils
|
||||||
|
@ -10,7 +10,7 @@ import
|
|||||||
chronicles, stint, nimcrypto, stew/ranges/ptr_arith, eth/common,
|
chronicles, stint, nimcrypto, stew/ranges/ptr_arith, eth/common,
|
||||||
./utils/[macros_procs_opcodes, utils_numeric],
|
./utils/[macros_procs_opcodes, utils_numeric],
|
||||||
./gas_meter, ./gas_costs, ./v2opcode_values, ./v2forks,
|
./gas_meter, ./gas_costs, ./v2opcode_values, ./v2forks,
|
||||||
../memory, ../stack, ../code_stream, ../computation, ../state, ../v2types,
|
../memory, ../stack, ../code_stream, ../computation, ../v2state, ../v2types,
|
||||||
../../errors, ../../constants,
|
../../errors, ../../constants,
|
||||||
../../db/[db_chain, accounts_cache]
|
../../db/[db_chain, accounts_cache]
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ import
|
|||||||
options, sets,
|
options, sets,
|
||||||
eth/common, chronicles, ../db/accounts_cache,
|
eth/common, chronicles, ../db/accounts_cache,
|
||||||
../transaction,
|
../transaction,
|
||||||
./computation, ./interpreter, ./state, ./v2types
|
./computation, ./interpreter, ./v2state, ./v2types
|
||||||
|
|
||||||
proc setupComputation*(vmState: BaseVMState, tx: Transaction, sender: EthAddress, fork: Fork) : Computation =
|
proc setupComputation*(vmState: BaseVMState, tx: Transaction, sender: EthAddress, fork: Fork) : Computation =
|
||||||
var gas = tx.gasLimit - tx.intrinsicGas(fork)
|
var gas = tx.gasLimit - tx.intrinsicGas(fork)
|
@ -13,7 +13,7 @@ when defined(evmc_enabled) or not defined(vm2_enabled):
|
|||||||
./vm/state as vms
|
./vm/state as vms
|
||||||
else:
|
else:
|
||||||
import
|
import
|
||||||
./vm2/state as vms
|
./vm2/v2state as vms
|
||||||
|
|
||||||
export
|
export
|
||||||
vms.`$`,
|
vms.`$`,
|
||||||
|
@ -13,7 +13,7 @@ when defined(evmc_enabled) or not defined(vm2_enabled):
|
|||||||
vm/state_transactions as vmx
|
vm/state_transactions as vmx
|
||||||
else:
|
else:
|
||||||
import
|
import
|
||||||
vm2/state_transactions as vmx
|
vm2/v2state_transactions as vmx
|
||||||
|
|
||||||
export
|
export
|
||||||
vmx.execComputation,
|
vmx.execComputation,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user