Skip to content

Commit

Permalink
Reject EVM and TransferDomain before EVM enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Bushstar committed Sep 8, 2023
1 parent 6002389 commit 3eca2bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/masternodes/mn_checks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ Res ApplyCustomTx(CCustomCSView &mnview,
auto attributes = mnview.GetAttributes();
assert(attributes);

if (txType == CustomTxType::EvmTx && !isEvmEnabledForBlock) {
if ((txType == CustomTxType::EvmTx || txType == CustomTxType::TransferDomain) && !isEvmEnabledForBlock) {
return Res::ErrCode(CustomTxErrCodes::Fatal, "EVM is not enabled on this block");
}

Expand Down

0 comments on commit 3eca2bb

Please sign in to comment.