Skip to content

Commit

Permalink
<feat>(features): Support new feature: bugfix_event_log_order, bugfix…
Browse files Browse the repository at this point in the history
…_call_noaddr_retur… (#860)

* support new feature: bugfix_event_log_order, bugfix_call_noaddr_return, bugfix_precompiled_codehash

* format code
  • Loading branch information
JimmyShi22 authored Jan 3, 2024
1 parent 718787d commit 720c381
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ public enum Features {
BUGFIX_EVM_CREATE2_DELEGATECALL_STATICCALL_CODECOPY(
"bugfix_evm_create2_delegatecall_staticcall_codecopy",
EnumNodeVersion.BCOS_3_2_4.getVersion()),
BUGFIX_EVENT_LOG_ORDER("bugfix_event_log_order", EnumNodeVersion.BCOS_3_2_6.getVersion()),
BUGFIX_CALL_NOADDR_RETURN(
"bugfix_call_noaddr_return", EnumNodeVersion.BCOS_3_2_6.getVersion()),
BUGFIX_PRECOMPILED_CODEHASH(
"bugfix_precompiled_codehash", EnumNodeVersion.BCOS_3_2_6.getVersion()),
FEATURE_SHARDING("feature_sharding", EnumNodeVersion.BCOS_3_5_0.getVersion()),
FEATURE_RPBFT("feature_rpbft", EnumNodeVersion.BCOS_3_5_0.getVersion()),
FEATURE_RPBFT_EPOCH_BLOCK_NUM(
Expand Down Expand Up @@ -48,6 +53,12 @@ public static Features fromString(String name) {
return Features.BUGFIX_STATESTORAGE_HASH;
case "bugfix_evm_create2_delegatecall_staticcall_codecopy":
return Features.BUGFIX_EVM_CREATE2_DELEGATECALL_STATICCALL_CODECOPY;
case "bugfix_event_log_order":
return Features.BUGFIX_EVENT_LOG_ORDER;
case "bugfix_call_noaddr_return":
return Features.BUGFIX_CALL_NOADDR_RETURN;
case "bugfix_precompiled_codehash":
return Features.BUGFIX_PRECOMPILED_CODEHASH;
case "feature_sharding":
return Features.FEATURE_SHARDING;
case "feature_rpbft":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ public enum EnumNodeVersion {
BCOS_3_2_0(0x03020000),
BCOS_3_2_3(0x03020300),
BCOS_3_2_4(0x03020400),
BCOS_3_2_5(0x03020500),
BCOS_3_2_6(0x03020600),
BCOS_3_3_0(0x03030000),
BCOS_3_4_0(0x03040000),
BCOS_3_5_0(0x03050000),
Expand All @@ -26,6 +28,8 @@ public enum EnumNodeVersion {
versionLookupMap.put(0x03020000, BCOS_3_2_0);
versionLookupMap.put(0x03020300, BCOS_3_2_3);
versionLookupMap.put(0x03020400, BCOS_3_2_4);
versionLookupMap.put(0x03020500, BCOS_3_2_5);
versionLookupMap.put(0x03020600, BCOS_3_2_6);
versionLookupMap.put(0x03030000, BCOS_3_3_0);
versionLookupMap.put(0x03040000, BCOS_3_4_0);
versionLookupMap.put(0x03050000, BCOS_3_5_0);
Expand Down

0 comments on commit 720c381

Please sign in to comment.