Split Metropolis into Byzantium and Constantinople

This commit is contained in:
Yoichi Hirai 2017-08-01 16:40:52 +02:00
parent e0ca65b848
commit 56ccdf9d2f
2 changed files with 4 additions and 3 deletions

View File

@ -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;

View File

@ -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,
};