diff --git a/src/masternodes/mn_checks.cpp b/src/masternodes/mn_checks.cpp index 289ca9fddf..2d8748f551 100644 --- a/src/masternodes/mn_checks.cpp +++ b/src/masternodes/mn_checks.cpp @@ -3905,9 +3905,12 @@ class CCustomTxApplyVisitor : public CCustomTxVisitor { CrossBoundaryResult result; const auto hashAndGas = evm_try_prevalidate_raw_tx(result, HexStr(obj.evmTx), true); - if (!result.ok) { - LogPrintf("[evm_try_prevalidate_raw_tx] failed, reason : %s\n", result.reason); - return Res::Err("evm tx failed to validate %s", result.reason); + // Completely remove this fork guard on mainnet upgrade to restore nonce check from EVM activation + if (height >= static_cast(consensus.ChangiIntermediateHeight)) { + if (!result.ok) { + LogPrintf("[evm_try_prevalidate_raw_tx] failed, reason : %s\n", result.reason); + return Res::Err("evm tx failed to validate %s", result.reason); + } } evm_try_queue_tx(result, evmContext, HexStr(obj.evmTx), tx.GetHash().ToArrayReversed()); diff --git a/test/functional/feature_evm_fee.py b/test/functional/feature_evm_fee.py index 14c6ae90a7..0dc4189c21 100755 --- a/test/functional/feature_evm_fee.py +++ b/test/functional/feature_evm_fee.py @@ -16,7 +16,7 @@ def set_test_params(self): self.num_nodes = 1 self.setup_clean_chain = True self.extra_args = [ - ['-dummypos=0', '-txnotokens=0', '-amkheight=50', '-bayfrontheight=51', '-eunosheight=80', '-fortcanningheight=82', '-fortcanninghillheight=84', '-fortcanningroadheight=86', '-fortcanningcrunchheight=88', '-fortcanningspringheight=90', '-fortcanninggreatworldheight=94', '-fortcanningepilogueheight=96', '-grandcentralheight=101', '-nextnetworkupgradeheight=105', '-subsidytest=1', '-txindex=1'], + ['-dummypos=0', '-txnotokens=0', '-amkheight=50', '-bayfrontheight=51', '-eunosheight=80', '-fortcanningheight=82', '-fortcanninghillheight=84', '-fortcanningroadheight=86', '-fortcanningcrunchheight=88', '-fortcanningspringheight=90', '-fortcanninggreatworldheight=94', '-fortcanningepilogueheight=96', '-grandcentralheight=101', '-nextnetworkupgradeheight=105', '-changiintermediateheight=105', '-subsidytest=1', '-txindex=1'], ] def setup(self):