Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove legacy EVM limit #2647

Merged
merged 1 commit into from
Oct 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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