Skip to content

Commit

Permalink
Rename Constantinople2 to Petersburg
Browse files Browse the repository at this point in the history
  • Loading branch information
chfast committed Mar 11, 2019
1 parent b416176 commit 99de2b8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bindings/go/evmc/evmc.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ const (
SpuriousDragon Revision = C.EVMC_SPURIOUS_DRAGON
Byzantium Revision = C.EVMC_BYZANTIUM
Constantinople Revision = C.EVMC_CONSTANTINOPLE
Constantinople2 Revision = C.EVMC_CONSTANTINOPLE2
Petersburg Revision = C.EVMC_PETERSBURG
Istanbul Revision = C.EVMC_ISTANBUL
)

Expand Down
8 changes: 4 additions & 4 deletions include/evmc/evmc.h
Original file line number Diff line number Diff line change
Expand Up @@ -756,12 +756,12 @@ enum evmc_revision
EVMC_CONSTANTINOPLE = 5,

/**
* Reserved for the post-Constantinople upgrade. The name is likely to
* be changed, but the assigned number should stay.
* The Petersburg revision.
*
* The spec draft: https://github.com/ethereum/EIPs/pull/1716.
* Other names: Constantinople2, ConstantinopleFix.
* https://eips.ethereum.org/EIPS/eip-1716
*/
EVMC_CONSTANTINOPLE2 = 6,
EVMC_PETERSBURG = 6,

/**
* The Istanbul revision.
Expand Down
2 changes: 1 addition & 1 deletion lib/instructions/instruction_metrics.c
Original file line number Diff line number Diff line change
Expand Up @@ -1322,7 +1322,7 @@ const struct evmc_instruction_metrics* evmc_get_instruction_metrics_table(
switch (revision)
{
case EVMC_ISTANBUL:
case EVMC_CONSTANTINOPLE2:
case EVMC_PETERSBURG:
case EVMC_CONSTANTINOPLE:
return constantinople_metrics;
case EVMC_BYZANTIUM:
Expand Down
2 changes: 1 addition & 1 deletion lib/instructions/instruction_names.c
Original file line number Diff line number Diff line change
Expand Up @@ -1046,7 +1046,7 @@ const char* const* evmc_get_instruction_names_table(enum evmc_revision revision)
switch (revision)
{
case EVMC_ISTANBUL:
case EVMC_CONSTANTINOPLE2:
case EVMC_PETERSBURG:
case EVMC_CONSTANTINOPLE:
return constantinople_names;
case EVMC_BYZANTIUM:
Expand Down

0 comments on commit 99de2b8

Please sign in to comment.