mirror of https://github.com/status-im/evmc.git
Reserve post-Constantinople EVM revision number as Constantinople2
Co-authored-by: Paweł Bylica <chfast@gmail.com>
This commit is contained in:
parent
9478acee14
commit
cdc3f21dae
|
@ -141,6 +141,7 @@ const (
|
|||
SpuriousDragon Revision = C.EVMC_SPURIOUS_DRAGON
|
||||
Byzantium Revision = C.EVMC_BYZANTIUM
|
||||
Constantinople Revision = C.EVMC_CONSTANTINOPLE
|
||||
Constantinople2 Revision = C.EVMC_CONSTANTINOPLE2
|
||||
Istanbul Revision = C.EVMC_ISTANBUL
|
||||
)
|
||||
|
||||
|
|
|
@ -717,7 +717,14 @@ enum evmc_revision
|
|||
EVMC_SPURIOUS_DRAGON = 3,
|
||||
EVMC_BYZANTIUM = 4,
|
||||
EVMC_CONSTANTINOPLE = 5,
|
||||
EVMC_ISTANBUL = 6,
|
||||
|
||||
/**
|
||||
* Reserved for the post-Constantinople upgrade. The name is likely to
|
||||
* be changed, but the assigned number should stay.
|
||||
*/
|
||||
EVMC_CONSTANTINOPLE2 = 6,
|
||||
|
||||
EVMC_ISTANBUL = 7,
|
||||
|
||||
/** The maximum EVM revision supported. */
|
||||
EVMC_MAX_REVISION = EVMC_ISTANBUL,
|
||||
|
|
|
@ -1322,7 +1322,7 @@ const struct evmc_instruction_metrics* evmc_get_instruction_metrics_table(
|
|||
switch (revision)
|
||||
{
|
||||
case EVMC_ISTANBUL:
|
||||
/* Currently the same as Costantinople */
|
||||
case EVMC_CONSTANTINOPLE2:
|
||||
case EVMC_CONSTANTINOPLE:
|
||||
return constantinople_metrics;
|
||||
case EVMC_BYZANTIUM:
|
||||
|
|
|
@ -1046,7 +1046,7 @@ const char* const* evmc_get_instruction_names_table(enum evmc_revision revision)
|
|||
switch (revision)
|
||||
{
|
||||
case EVMC_ISTANBUL:
|
||||
/* Currently the same as Costantinople */
|
||||
case EVMC_CONSTANTINOPLE2:
|
||||
case EVMC_CONSTANTINOPLE:
|
||||
return constantinople_names;
|
||||
case EVMC_BYZANTIUM:
|
||||
|
|
Loading…
Reference in New Issue