Skip to content

Commit

Permalink
chore: use new is_broadcastable_in_full (paradigmxyz#12757)
Browse files Browse the repository at this point in the history
Co-authored-by: Dan Cline <[email protected]>
  • Loading branch information
mattsse and Rjected authored Nov 21, 2024
1 parent 367478c commit 1061e46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/net/network/src/transactions/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1607,6 +1607,7 @@ impl<T: SignedTransaction> FullTransactionsBuilder<T> {
///
/// If the transaction is unsuitable for broadcast or would exceed the softlimit, it is appended
/// to list of pooled transactions, (e.g. 4844 transactions).
/// See also [`TxType::is_broadcastable_in_full`].
fn push(&mut self, transaction: &PropagateTransaction<T>) {
// Do not send full 4844 transaction hashes to peers.
//
Expand All @@ -1616,7 +1617,7 @@ impl<T: SignedTransaction> FullTransactionsBuilder<T> {
// via `GetPooledTransactions`.
//
// From: <https://eips.ethereum.org/EIPS/eip-4844#networking>
if transaction.transaction.transaction().tx_type().is_eip4844() {
if !transaction.transaction.transaction().tx_type().is_broadcastable_in_full() {
self.pooled.push(transaction);
return
}
Expand Down

0 comments on commit 1061e46

Please sign in to comment.