mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-15 13:51:11 +00:00
Decrease peer reputation on bad transactions (#4035)
* Decrease reputation on bad transactions * Don't punish on duplicate transactions
This commit is contained in:
committed by
Gavin Wood
parent
9515d34aee
commit
e73436d818
@@ -71,7 +71,8 @@ pub trait TransactionPool<H: ExHashT, B: BlockT>: Send + Sync {
|
||||
&self,
|
||||
report_handle: ReportHandle,
|
||||
who: PeerId,
|
||||
reputation_change: i32,
|
||||
reputation_change_good: i32,
|
||||
reputation_change_bad: i32,
|
||||
transaction: B::Extrinsic,
|
||||
);
|
||||
/// Notify the pool about transactions broadcast.
|
||||
|
||||
Reference in New Issue
Block a user