Skip to content

Commit 7df3755

Browse files
committed
feat: Use PrimitiveSignature instead of normal Signature
1 parent 9ed9fa2 commit 7df3755

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

crates/net/network/src/transactions/validation.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//! announcements. Validation and filtering of announcements is network dependent.
44
55
use crate::metrics::{AnnouncedTxTypesMetrics, TxTypesCounter};
6-
use alloy_primitives::{Signature, TxHash};
6+
use alloy_primitives::{PrimitiveSignature as Signature, TxHash};
77
use derive_more::{Deref, DerefMut};
88
use reth_eth_wire::{
99
DedupPayload, Eth68TxMetadata, HandleMempoolData, PartiallyValidData, ValidAnnouncementData,
@@ -80,7 +80,7 @@ pub trait PartiallyFilterMessage {
8080
msg=?msg,
8181
"empty payload"
8282
);
83-
return (FilterOutcome::ReportPeer, PartiallyValidData::empty_eth66())
83+
return (FilterOutcome::ReportPeer, PartiallyValidData::empty_eth66());
8484
}
8585

8686
// 2. checks if announcement is spam packed with duplicate hashes
@@ -179,7 +179,7 @@ impl ValidateTx68 for EthMessageFilter {
179179
"invalid tx type in eth68 announcement"
180180
);
181181

182-
return ValidationOutcome::ReportPeer
182+
return ValidationOutcome::ReportPeer;
183183
}
184184
};
185185
tx_types_counter.increase_by_tx_type(tx_type);
@@ -201,7 +201,7 @@ impl ValidateTx68 for EthMessageFilter {
201201
"invalid tx size in eth68 announcement"
202202
);
203203

204-
return ValidationOutcome::Ignore
204+
return ValidationOutcome::Ignore;
205205
}
206206
}
207207
if let Some(reasonable_min_encoded_tx_length) = self.min_encoded_tx_length(tx_type) {

0 commit comments

Comments
 (0)