mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-29 18:27:25 +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
@@ -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>>) {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user