fix bug in penalties from message rejection

the first source of the invalid message was _not_ penalized!
This commit is contained in:
vyzo 2020-04-24 23:06:22 +03:00
parent 5c1b637dce
commit f742e5439f
1 changed files with 2 additions and 0 deletions

View File

@ -562,6 +562,8 @@ func (ps *peerScore) RejectMessage(msg *Message, reason string) {
// mark the message as invalid and penalize peers that have already forwarded it.
drec.status = deliveryInvalid
ps.markInvalidMessageDelivery(msg.ReceivedFrom, msg)
for p := range drec.peers {
ps.markInvalidMessageDelivery(p, msg)
}