count all rejections by default
This commit is contained in:
parent
7912408642
commit
6dbdaed793
|
@ -227,15 +227,7 @@ func (pg *peerGater) RejectMessage(msg *Message, reason string) {
|
||||||
st := pg.getPeerStats(msg.ReceivedFrom)
|
st := pg.getPeerStats(msg.ReceivedFrom)
|
||||||
st.ignore++
|
st.ignore++
|
||||||
|
|
||||||
case rejectMissingSignature:
|
default:
|
||||||
fallthrough
|
|
||||||
case rejectUnexpectedSignature:
|
|
||||||
fallthrough
|
|
||||||
case rejectUnexpectedAuthInfo:
|
|
||||||
fallthrough
|
|
||||||
case rejectInvalidSignature:
|
|
||||||
fallthrough
|
|
||||||
case rejectValidationFailed:
|
|
||||||
st := pg.getPeerStats(msg.ReceivedFrom)
|
st := pg.getPeerStats(msg.ReceivedFrom)
|
||||||
st.reject++
|
st.reject++
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue