use directionString() instead of handrollong.

This commit is contained in:
Owain G. Ainsworth 2013-10-03 01:39:31 +01:00
parent 2dcd003722
commit 13a8a8e7e3

View file

@ -137,14 +137,8 @@ func (b *blockManager) handleNewPeerMsg(peers *list.List, p *peer) {
return
}
var boundness string
if p.inbound {
boundness = "inbound"
} else {
boundness = "outbound"
}
log.Infof("[BMGR] New valid peer %s (%s)", p.addr, boundness)
log.Infof("[BMGR] New valid peer %s (%s)", p.addr,
directionString(p.inbound))
// The peer is not a candidate for sync if it's not a full node.
if p.services&btcwire.SFNodeNetwork != btcwire.SFNodeNetwork {