From 344552bbe1386b9b5506b0cb0290e22d071e9448 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Bylica?= Date: Wed, 14 Sep 2016 13:50:45 +0200 Subject: [PATCH] Move CALL cost calculations to VM Delegating CALL cost calculations to Env is bad idea and has bugs. --- include/evm.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/evm.h b/include/evm.h index 9351b69..0b9d7de 100644 --- a/include/evm.h +++ b/include/evm.h @@ -100,7 +100,8 @@ enum evm_query_key { EVM_TIMESTAMP = 9, ///< Current block timestamp for TIMESTAMP. EVM_CODE_BY_ADDRESS = 10, ///< Code by an address for EXTCODE/SIZE. EVM_BALANCE = 11, ///< Balance of a given address for BALANCE. - EVM_BLOCKHASH = 12 ///< Block hash of by block number for BLOCKHASH. + EVM_BLOCKHASH = 12, ///< Block hash of by block number for BLOCKHASH. + EVM_ACCOUNT_EXISTS = 13 };