p2p: actually save the updated penalty too

This commit is contained in:
Péter Szilágyi 2015-05-28 05:19:58 +03:00
parent 1b25ffaca5
commit 065b9bd8c8

View file

@ -456,6 +456,7 @@ running:
penalty = banMaximumTimeout
}
}
penalties[p.ID()] = penalty
banned[p.ID()] = time.Now().Add(penalty)
glog.V(logger.Debug).Infof("Banned %s until %v", p.ID().String()[:16], banned[p.ID()])
case op := <-srv.peerOp: