From e2087f09227ddde2b3b6d3b37dea9826e49d188f Mon Sep 17 00:00:00 2001 From: coffeepots Date: Tue, 2 Oct 2018 15:55:28 +0100 Subject: [PATCH] Remove precompile hash table --- nimbus/vm_state_transactions.nim | 1 - nimbus/vm_types.nim | 1 - tests/test_opcode.nim | 1 - 3 files changed, 3 deletions(-) diff --git a/nimbus/vm_state_transactions.nim b/nimbus/vm_state_transactions.nim index 1392624be..3bd61ec49 100644 --- a/nimbus/vm_state_transactions.nim +++ b/nimbus/vm_state_transactions.nim @@ -46,7 +46,6 @@ proc setupComputation*(header: BlockHeader, vmState: var BaseVMState, transactio createAddress = transaction.to)) result = newBaseComputation(vmState, header.blockNumber, message) - result.precompiles = initTable[string, Opcode]() doAssert result.isOriginComputation proc execComputation*(computation: var BaseComputation, vmState: BaseVMState): bool = diff --git a/nimbus/vm_types.nim b/nimbus/vm_types.nim index 1cdafb0b4..7d39df0bc 100644 --- a/nimbus/vm_types.nim +++ b/nimbus/vm_types.nim @@ -32,7 +32,6 @@ type shouldEraseReturnData*: bool accountsToDelete*: Table[EthAddress, EthAddress] opcodes*: Table[Op, proc(computation: var BaseComputation){.nimcall.}] - precompiles*: Table[string, Opcode] gasCosts*: GasCosts # TODO - will be hidden at a lower layer opCodeExec*: OpcodeExecutor diff --git a/tests/test_opcode.nim b/tests/test_opcode.nim index b6ef21776..893a3545f 100644 --- a/tests/test_opcode.nim +++ b/tests/test_opcode.nim @@ -44,7 +44,6 @@ proc testCode(code: string, initialGas: GasInt, blockNum: UInt256): BaseComputat c.displayDecompiled() result = newBaseComputation(vmState, blockNum, message) - result.precompiles = initTable[string, Opcode]() result.executeOpcodes()