Skip to content

Commit

Permalink
Remove legacy EVM limit (#2647)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bushstar authored Oct 31, 2023
1 parent ab5e136 commit 004f918
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
4 changes: 0 additions & 4 deletions src/dfi/consensus/xvm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -430,10 +430,6 @@ Res CXVMConsensus::operator()(const CEvmTxMessage &obj) const {
return Res::Err("Cannot create tx, EVM is not enabled");
}

if (obj.evmTx.size() > static_cast<size_t>(EVM_TX_SIZE)) {
return Res::Err("evm tx size too large");
}

CrossBoundaryResult result;
if (evmPreValidate) {
evm_try_unsafe_validate_raw_tx_in_template(result, evmTemplate->GetTemplate(), HexStr(obj.evmTx));
Expand Down
2 changes: 0 additions & 2 deletions src/dfi/evm.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
#include <serialize.h>
#include <uint256.h>

constexpr const uint16_t EVM_TX_SIZE = 32768;

// EIP-2718 transaction type: legacy - 0x0, EIP2930 - 0x1, EIP1559 - 0x2
enum CEVMTxType {
LegacyTransaction = 0,
Expand Down

0 comments on commit 004f918

Please sign in to comment.