mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 06:21:02 +00:00
net/strategy: Log bad peerId from on_validated_block_announce (#4051)
This tiny PR extends the `on_validated_block_announce` log with the bad PeerID. Used to identify if the peerID is malicious by correlating with other logs (ie peer-set). While at it, have removed the `\n` from a multiline log, which did not play well with [sub-triage-logs](https://github.com/lexnv/sub-triage-logs/tree/master). cc @paritytech/networking --------- Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> Co-authored-by: Bastian Köcher <git@kchr.de>
This commit is contained in:
@@ -442,7 +442,7 @@ impl ClusterTracker {
|
||||
target: LOG_TARGET,
|
||||
pending_statements = ?self.pending,
|
||||
?parent_hash,
|
||||
"Cluster has too many pending statements, something wrong with our connection to our group peers \n
|
||||
"Cluster has too many pending statements, something wrong with our connection to our group peers
|
||||
Restart might be needed if validator gets 0 backing rewards for more than 3-4 consecutive sessions"
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user