mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-12 21:34:33 +00:00
Remove precompile hash table
This commit is contained in:
parent
62968bf733
commit
e2087f0922
@ -46,7 +46,6 @@ proc setupComputation*(header: BlockHeader, vmState: var BaseVMState, transactio
|
|||||||
createAddress = transaction.to))
|
createAddress = transaction.to))
|
||||||
|
|
||||||
result = newBaseComputation(vmState, header.blockNumber, message)
|
result = newBaseComputation(vmState, header.blockNumber, message)
|
||||||
result.precompiles = initTable[string, Opcode]()
|
|
||||||
doAssert result.isOriginComputation
|
doAssert result.isOriginComputation
|
||||||
|
|
||||||
proc execComputation*(computation: var BaseComputation, vmState: BaseVMState): bool =
|
proc execComputation*(computation: var BaseComputation, vmState: BaseVMState): bool =
|
||||||
|
@ -32,7 +32,6 @@ type
|
|||||||
shouldEraseReturnData*: bool
|
shouldEraseReturnData*: bool
|
||||||
accountsToDelete*: Table[EthAddress, EthAddress]
|
accountsToDelete*: Table[EthAddress, EthAddress]
|
||||||
opcodes*: Table[Op, proc(computation: var BaseComputation){.nimcall.}]
|
opcodes*: Table[Op, proc(computation: var BaseComputation){.nimcall.}]
|
||||||
precompiles*: Table[string, Opcode]
|
|
||||||
gasCosts*: GasCosts # TODO - will be hidden at a lower layer
|
gasCosts*: GasCosts # TODO - will be hidden at a lower layer
|
||||||
opCodeExec*: OpcodeExecutor
|
opCodeExec*: OpcodeExecutor
|
||||||
|
|
||||||
|
@ -44,7 +44,6 @@ proc testCode(code: string, initialGas: GasInt, blockNum: UInt256): BaseComputat
|
|||||||
c.displayDecompiled()
|
c.displayDecompiled()
|
||||||
|
|
||||||
result = newBaseComputation(vmState, blockNum, message)
|
result = newBaseComputation(vmState, blockNum, message)
|
||||||
result.precompiles = initTable[string, Opcode]()
|
|
||||||
|
|
||||||
result.executeOpcodes()
|
result.executeOpcodes()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user