mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 05:06:43 +00:00
p2p: actually save the updated penalty too
This commit is contained in:
parent
1b25ffaca5
commit
065b9bd8c8
1 changed files with 1 additions and 0 deletions
|
|
@ -456,6 +456,7 @@ running:
|
||||||
penalty = banMaximumTimeout
|
penalty = banMaximumTimeout
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
penalties[p.ID()] = penalty
|
||||||
banned[p.ID()] = time.Now().Add(penalty)
|
banned[p.ID()] = time.Now().Add(penalty)
|
||||||
glog.V(logger.Debug).Infof("Banned %s until %v", p.ID().String()[:16], banned[p.ID()])
|
glog.V(logger.Debug).Infof("Banned %s until %v", p.ID().String()[:16], banned[p.ID()])
|
||||||
case op := <-srv.peerOp:
|
case op := <-srv.peerOp:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue