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
+8 -1
View File
@@ -399,7 +399,14 @@ impl TransactionPool<Hash, Block> for EmptyTransactionPool {
Hash::default()
}
fn import(&self, _report_handle: ReportHandle, _who: PeerId, _rep_change: i32, _transaction: Extrinsic) {}
fn import(
&self,
_report_handle: ReportHandle,
_who: PeerId,
_rep_change_good: i32,
_rep_change_bad: i32,
_transaction: Extrinsic
) {}
fn on_broadcasted(&self, _: HashMap<Hash, Vec<String>>) {}
}