From 56ccdf9d2f25e1a70d7ef97c2667966cbb327abd Mon Sep 17 00:00:00 2001 From: Yoichi Hirai Date: Tue, 1 Aug 2017 16:40:52 +0200 Subject: [PATCH] Split Metropolis into Byzantium and Constantinople --- examples/examplevm.c | 4 ++-- include/evm.h | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/examplevm.c b/examples/examplevm.c index 3783b56..0e5c74a 100644 --- a/examples/examplevm.c +++ b/examples/examplevm.c @@ -56,8 +56,8 @@ static struct evm_result execute(struct evm_instance* instance, struct evm_result ret = {}; if (code_size == 0) { // In case of empty code return a fancy error message. - const char* error = mode == EVM_METROPOLIS ? - "Welcome to Metropolis!" : "Hello Ethereum!"; + const char* error = mode == EVM_BYZANTIUM ? + "Welcome to Byzantium!" : "Hello Ethereum!"; ret.output_data = (const uint8_t*)error; ret.output_size = strlen(error); ret.code = EVM_FAILURE; diff --git a/include/evm.h b/include/evm.h index d3c4ee7..6706ff0 100644 --- a/include/evm.h +++ b/include/evm.h @@ -387,7 +387,8 @@ enum evm_mode { EVM_HOMESTEAD = 1, EVM_ANTI_DOS = 2, EVM_CLEARING = 3, - EVM_METROPOLIS = 4, + EVM_BYZANTIUM = 4, + EVM_CONSTANTINOPLE = 5, };