Skip to content

Commit

Permalink
fix chain id check for legacy tx in pool (#1407)
Browse files Browse the repository at this point in the history
  • Loading branch information
tcoratger authored Sep 26, 2024
1 parent b2058bb commit 166c596
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pool/validate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,9 @@ where
// Checks for tx_type
match transaction.tx_type() {
LEGACY_TX_TYPE_ID => {
if !get_white_listed_eip_155_transaction_hashes().contains(transaction.hash()) {
if transaction.chain_id().is_none()
&& !get_white_listed_eip_155_transaction_hashes().contains(transaction.hash())
{
return TransactionValidationOutcome::Invalid(
transaction,
InvalidTransactionError::TxTypeNotSupported.into(),
Expand Down

0 comments on commit 166c596

Please sign in to comment.