[refactor] Simplify connection type logic in ThreadOpenConnections
[refactor] Simplify connection type logic in ThreadOpenConnections

Consolidate the logic to determine connection type into one conditional to
clarify how they are chosen.

sipsorcery/bitcoin,bitcoin/bitcoin,rnicoll/dogecoin,anditto/bitcoin,jambolo/bitcoin,fujicoin/fujicoin,EthanHeilman/bitcoin,kallewoof/bitcoin,domob1812/namecore,AkioNak/bitcoin,practicalswift/bitcoin,litecoin-project/litecoin,apoelstra/bitcoin,Xekyo/bitcoin,domob1812/namecore,mruddy/bitcoin,jonasschnelli/bitcoin,practicalswift/bitcoin,andreaskern/bitcoin,GroestlCoin/bitcoin,AkioNak/bitcoin,JeremyRubin/bitcoin,n1bor/bitcoin,jlopp/statoshi,sipsorcery/bitcoin,apoelstra/bitcoin,litecoin-project/litecoin,particl/particl-core,achow101/bitcoin,jnewbery/bitcoin,domob1812/bitcoin,sstone/bitcoin,practicalswift/bitcoin,kallewoof/bitcoin,dscotese/bitcoin,namecoin/namecoin-core,GroestlCoin/GroestlCoin,bitcoinknots/bitcoin,sstone/bitcoin,EthanHeilman/bitcoin,pataquets/namecoin-core,GroestlCoin/GroestlCoin,MeshCollider/bitcoin,particl/particl-core,andreaskern/bitcoin,pstratem/bitcoin,MarcoFalke/bitcoin,Sjors/bitcoin,prusnak/bitcoin,rnicoll/bitcoin,achow101/bitcoin,Sjors/bitcoin,ElementsProject/elements,namecoin/namecore,bitcoin/bitcoin,alecalve/bitcoin,rnicoll/dogecoin,achow101/bitcoin,jambolo/bitcoin,jlopp/statoshi,GroestlCoin/bitcoin,n1bor/bitcoin,ajtowns/bitcoin,tecnovert/particl-core,namecoin/namecore,rnicoll/dogecoin,anditto/bitcoin,GroestlCoin/bitcoin,apoelstra/bitcoin,dscotese/bitcoin,cdecker/bitcoin,mm-s/bitcoin,qtumproject/qtum,EthanHeilman/bitcoin,GroestlCoin/bitcoin,andreaskern/bitcoin,rnicoll/dogecoin,instagibbs/bitcoin,jambolo/bitcoin,MeshCollider/bitcoin,cdecker/bitcoin,alecalve/bitcoin,jamesob/bitcoin,pstratem/bitcoin,litecoin-project/litecoin,fujicoin/fujicoin,jambolo/bitcoin,MarcoFalke/bitcoin,ajtowns/bitcoin,prusnak/bitcoin,Xekyo/bitcoin,n1bor/bitcoin,particl/particl-core,particl/particl-core,domob1812/bitcoin,Xekyo/bitcoin,practicalswift/bitcoin,achow101/bitcoin,Xekyo/bitcoin,jnewbery/bitcoin,Sjors/bitcoin,litecoin-project/litecoin,mm-s/bitcoin,ElementsProject/elements,namecoin/namecoin-core,bitcoinsSG/bitcoin,lateminer/bitcoin,mruddy/bitcoin,lateminer/bitcoin,cdecker/bitcoin,MeshCollider/bitcoin,sstone/bitcoin,bitcoin/bitcoin,bitcoin/bitcoin,bitcoinknots/bitcoin,alecalve/bitcoin,fujicoin/fujicoin,qtumproject/qtum,namecoin/namecore,jamesob/bitcoin,Sjors/bitcoin,kallewoof/bitcoin,kallewoof/bitcoin,jnewbery/bitcoin,ElementsProject/elements,practicalswift/bitcoin,fanquake/bitcoin,andreaskern/bitcoin,ElementsProject/elements,GroestlCoin/GroestlCoin,achow101/bitcoin,bitcoinknots/bitcoin,namecoin/namecoin-core,AkioNak/bitcoin,domob1812/namecore,pstratem/bitcoin,tecnovert/particl-core,fanquake/bitcoin,kallewoof/bitcoin,ajtowns/bitcoin,dscotese/bitcoin,JeremyRubin/bitcoin,instagibbs/bitcoin,rnicoll/bitcoin,prusnak/bitcoin,qtumproject/qtum,prusnak/bitcoin,alecalve/bitcoin,mm-s/bitcoin,pstratem/bitcoin,rnicoll/bitcoin,fanquake/bitcoin,prusnak/bitcoin,JeremyRubin/bitcoin,JeremyRubin/bitcoin,EthanHeilman/bitcoin,anditto/bitcoin,sstone/bitcoin,yenliangl/bitcoin,GroestlCoin/bitcoin,jlopp/statoshi,fujicoin/fujicoin,mm-s/bitcoin,Sjors/bitcoin,namecoin/namecoin-core,GroestlCoin/GroestlCoin,yenliangl/bitcoin,ajtowns/bitcoin,MeshCollider/bitcoin,bitcoin/bitcoin,MeshCollider/bitcoin,ElementsProject/elements,kallewoof/bitcoin,domob1812/namecore,jambolo/bitcoin,pataquets/namecoin-core,n1bor/bitcoin,andreaskern/bitcoin,domob1812/bitcoin,yenliangl/bitcoin,litecoin-project/litecoin,ajtowns/bitcoin,tecnovert/particl-core,instagibbs/bitcoin,sipsorcery/bitcoin,jonasschnelli/bitcoin,sipsorcery/bitcoin,sipsorcery/bitcoin,yenliangl/bitcoin,jlopp/statoshi,practicalswift/bitcoin,instagibbs/bitcoin,lateminer/bitcoin,qtumproject/qtum,pataquets/namecoin-core,dscotese/bitcoin,qtumproject/qtum,alecalve/bitcoin,GroestlCoin/GroestlCoin,rnicoll/dogecoin,yenliangl/bitcoin,qtumproject/qtum,apoelstra/bitcoin,andreaskern/bitcoin,instagibbs/bitcoin,GroestlCoin/GroestlCoin,bitcoinknots/bitcoin,mruddy/bitcoin,tecnovert/particl-core,fujicoin/fujicoin,MarcoFalke/bitcoin,namecoin/namecore,pstratem/bitcoin,jnewbery/bitcoin,EthanHeilman/bitcoin,bitcoinsSG/bitcoin,fanquake/bitcoin,jambolo/bitcoin,ElementsProject/elements,jonasschnelli/bitcoin,pataquets/namecoin-core,particl/particl-core,alecalve/bitcoin,jonasschnelli/bitcoin,EthanHeilman/bitcoin,achow101/bitcoin,GroestlCoin/bitcoin,lateminer/bitcoin,rnicoll/bitcoin,domob1812/bitcoin,anditto/bitcoin,namecoin/namecore,MeshCollider/bitcoin,anditto/bitcoin,pataquets/namecoin-core,litecoin-project/litecoin,sipsorcery/bitcoin,namecoin/namecore,Xekyo/bitcoin,jlopp/statoshi,pstratem/bitcoin,MarcoFalke/bitcoin,AkioNak/bitcoin,dscotese/bitcoin,jlopp/statoshi,mm-s/bitcoin,Xekyo/bitcoin,cdecker/bitcoin,jamesob/bitcoin,tecnovert/particl-core,namecoin/namecoin-core,cdecker/bitcoin,qtumproject/qtum,apoelstra/bitcoin,MarcoFalke/bitcoin,jamesob/bitcoin,anditto/bitcoin,mruddy/bitcoin,MarcoFalke/bitcoin,ajtowns/bitcoin,bitcoin/bitcoin,JeremyRubin/bitcoin,bitcoinsSG/bitcoin,bitcoinsSG/bitcoin,bitcoinsSG/bitcoin,domob1812/namecore,n1bor/bitcoin,dscotese/bitcoin,domob1812/namecore,rnicoll/bitcoin,jamesob/bitcoin,mruddy/bitcoin,jonasschnelli/bitcoin,fanquake/bitcoin,AkioNak/bitcoin,jamesob/bitcoin,pataquets/namecoin-core,AkioNak/bitcoin,domob1812/bitcoin,rnicoll/bitcoin,bitcoinknots/bitcoin,fujicoin/fujicoin,mm-s/bitcoin,apoelstra/bitcoin,yenliangl/bitcoin,mruddy/bitcoin,prusnak/bitcoin,particl/particl-core,domob1812/bitcoin,namecoin/namecoin-core,sstone/bitcoin,fanquake/bitcoin,JeremyRubin/bitcoin,jnewbery/bitcoin,lateminer/bitcoin,cdecker/bitcoin,sstone/bitcoin,tecnovert/particl-core,instagibbs/bitcoin,n1bor/bitcoin,bitcoinsSG/bitcoin,lateminer/bitcoin