Merge pull request #174 from ethereum/istanbul

Add Istanbul to evmc_revision
This commit is contained in:
Alex Beregszaszi 2019-01-14 15:21:01 +00:00 committed by GitHub
commit 46a2ef0683
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 1 deletions

View File

@ -141,6 +141,7 @@ const (
SpuriousDragon Revision = C.EVMC_SPURIOUS_DRAGON
Byzantium Revision = C.EVMC_BYZANTIUM
Constantinople Revision = C.EVMC_CONSTANTINOPLE
Istanbul Revision = C.EVMC_ISTANBUL
)
type Instance struct {

View File

@ -706,8 +706,9 @@ enum evmc_revision
EVMC_SPURIOUS_DRAGON = 3,
EVMC_BYZANTIUM = 4,
EVMC_CONSTANTINOPLE = 5,
EVMC_ISTANBUL = 6,
EVMC_LATEST_REVISION = EVMC_CONSTANTINOPLE
EVMC_LATEST_REVISION = EVMC_ISTANBUL /**< This is the maximum revision number supported. */
};

View File

@ -1321,6 +1321,8 @@ const struct evmc_instruction_metrics* evmc_get_instruction_metrics_table(
{
switch (revision)
{
case EVMC_ISTANBUL:
/* Currently the same as Costantinople */
case EVMC_CONSTANTINOPLE:
return constantinople_metrics;
case EVMC_BYZANTIUM:

View File

@ -1045,6 +1045,8 @@ const char* const* evmc_get_instruction_names_table(enum evmc_revision revision)
{
switch (revision)
{
case EVMC_ISTANBUL:
/* Currently the same as Costantinople */
case EVMC_CONSTANTINOPLE:
return constantinople_names;
case EVMC_BYZANTIUM: