count all rejections by default

This commit is contained in:
vyzo 2020-09-03 09:10:13 +03:00
parent 7912408642
commit 6dbdaed793
1 changed files with 1 additions and 9 deletions

View File

@ -227,15 +227,7 @@ func (pg *peerGater) RejectMessage(msg *Message, reason string) {
st := pg.getPeerStats(msg.ReceivedFrom)
st.ignore++
case rejectMissingSignature:
fallthrough
case rejectUnexpectedSignature:
fallthrough
case rejectUnexpectedAuthInfo:
fallthrough
case rejectInvalidSignature:
fallthrough
case rejectValidationFailed:
default:
st := pg.getPeerStats(msg.ReceivedFrom)
st.reject++
}