3
3
//! announcements. Validation and filtering of announcements is network dependent.
4
4
5
5
use crate :: metrics:: { AnnouncedTxTypesMetrics , TxTypesCounter } ;
6
- use alloy_primitives:: { Signature , TxHash } ;
6
+ use alloy_primitives:: { PrimitiveSignature as Signature , TxHash } ;
7
7
use derive_more:: { Deref , DerefMut } ;
8
8
use reth_eth_wire:: {
9
9
DedupPayload , Eth68TxMetadata , HandleMempoolData , PartiallyValidData , ValidAnnouncementData ,
@@ -80,7 +80,7 @@ pub trait PartiallyFilterMessage {
80
80
msg=?msg,
81
81
"empty payload"
82
82
) ;
83
- return ( FilterOutcome :: ReportPeer , PartiallyValidData :: empty_eth66 ( ) )
83
+ return ( FilterOutcome :: ReportPeer , PartiallyValidData :: empty_eth66 ( ) ) ;
84
84
}
85
85
86
86
// 2. checks if announcement is spam packed with duplicate hashes
@@ -179,7 +179,7 @@ impl ValidateTx68 for EthMessageFilter {
179
179
"invalid tx type in eth68 announcement"
180
180
) ;
181
181
182
- return ValidationOutcome :: ReportPeer
182
+ return ValidationOutcome :: ReportPeer ;
183
183
}
184
184
} ;
185
185
tx_types_counter. increase_by_tx_type ( tx_type) ;
@@ -201,7 +201,7 @@ impl ValidateTx68 for EthMessageFilter {
201
201
"invalid tx size in eth68 announcement"
202
202
) ;
203
203
204
- return ValidationOutcome :: Ignore
204
+ return ValidationOutcome :: Ignore ;
205
205
}
206
206
}
207
207
if let Some ( reasonable_min_encoded_tx_length) = self . min_encoded_tx_length ( tx_type) {
0 commit comments