Decrease peer reputation on bad transactions (#4035)

* Decrease reputation on bad transactions

* Don't punish on duplicate transactions
This commit is contained in:
Arkadiy Paronyan
2019-11-07 12:00:14 +01:00
committed by Gavin Wood
parent 9515d34aee
commit e73436d818
4 changed files with 28 additions and 7 deletions
+2 -1
View File
@@ -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.