You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.
This issue is actually invalid. it is valid that in the event handling, ApplyPenalty should not be used, and on request handling, it should be used. However, there are also requesting scenario which ApplyPenalty needs to be used. In this case, still Connenction.ApplyPenalty is required.
Therefore, it will not help much event if we add the ApplyPenalty to the ResponseWriter
Description
Add BlockPeer interface to P2P and replace the usage of
p2p.ApplyPenalty(pid, p2p.MaxPenaltyScore)
with `p2p.BlockPeer(pid)Motivation
Simplify the usage of the applying penalty since from the other packages we mostly block the peer immediately
The text was updated successfully, but these errors were encountered: