use directionString() instead of handrollong.
This commit is contained in:
parent
2dcd003722
commit
13a8a8e7e3
1 changed files with 2 additions and 8 deletions
|
@ -137,14 +137,8 @@ func (b *blockManager) handleNewPeerMsg(peers *list.List, p *peer) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
var boundness string
|
log.Infof("[BMGR] New valid peer %s (%s)", p.addr,
|
||||||
if p.inbound {
|
directionString(p.inbound))
|
||||||
boundness = "inbound"
|
|
||||||
} else {
|
|
||||||
boundness = "outbound"
|
|
||||||
}
|
|
||||||
|
|
||||||
log.Infof("[BMGR] New valid peer %s (%s)", p.addr, boundness)
|
|
||||||
|
|
||||||
// The peer is not a candidate for sync if it's not a full node.
|
// The peer is not a candidate for sync if it's not a full node.
|
||||||
if p.services&btcwire.SFNodeNetwork != btcwire.SFNodeNetwork {
|
if p.services&btcwire.SFNodeNetwork != btcwire.SFNodeNetwork {
|
||||||
|
|
Loading…
Reference in a new issue