eth, eth/downloader: fix #1231, DOS vulnerability in hash queueing

This commit is contained in:
Péter Szilágyi
2015-07-01 15:19:11 +03:00
parent 1ae80aaf64
commit d6f2c0a76f
2 changed files with 15 additions and 5 deletions

View File

@ -164,7 +164,7 @@ func (pm *ProtocolManager) newPeer(pv, nv int, p *p2p.Peer, rw p2p.MsgReadWriter
// handle is the callback invoked to manage the life cycle of an eth peer. When
// this function terminates, the peer is disconnected.
func (pm *ProtocolManager) handle(p *peer) error {
glog.V(logger.Debug).Infof("%v: peer connected", p)
glog.V(logger.Debug).Infof("%v: peer connected [%s]", p, p.Name())
// Execute the Ethereum handshake
td, head, genesis := pm.chainman.Status()