[test] Refactor the addr relay test to prepare for new tests
[test] Refactor the addr relay test to prepare for new tests

Moves setting up the addr message into a repeatable function, and breaks up the
existing tests into separate functions for legibility.

yenliangl/bitcoin,yenliangl/bitcoin,tecnovert/particl-core,Xekyo/bitcoin,particl/particl-core,jamesob/bitcoin,pataquets/namecoin-core,JeremyRubin/bitcoin,rnicoll/bitcoin,lateminer/bitcoin,instagibbs/bitcoin,andreaskern/bitcoin,achow101/bitcoin,qtumproject/qtum,lateminer/bitcoin,GroestlCoin/bitcoin,ElementsProject/elements,apoelstra/bitcoin,jlopp/statoshi,fujicoin/fujicoin,mruddy/bitcoin,jamesob/bitcoin,pataquets/namecoin-core,achow101/bitcoin,fanquake/bitcoin,Xekyo/bitcoin,sstone/bitcoin,mruddy/bitcoin,mm-s/bitcoin,achow101/bitcoin,qtumproject/qtum,anditto/bitcoin,domob1812/namecore,mm-s/bitcoin,lateminer/bitcoin,jamesob/bitcoin,domob1812/namecore,bitcoinknots/bitcoin,JeremyRubin/bitcoin,AkioNak/bitcoin,apoelstra/bitcoin,mm-s/bitcoin,kallewoof/bitcoin,kallewoof/bitcoin,lateminer/bitcoin,instagibbs/bitcoin,instagibbs/bitcoin,bitcoin/bitcoin,domob1812/namecore,namecoin/namecore,domob1812/namecore,bitcoin/bitcoin,namecoin/namecore,dscotese/bitcoin,ElementsProject/elements,bitcoinknots/bitcoin,sstone/bitcoin,fanquake/bitcoin,domob1812/bitcoin,particl/particl-core,JeremyRubin/bitcoin,jamesob/bitcoin,namecoin/namecoin-core,rnicoll/bitcoin,Xekyo/bitcoin,jlopp/statoshi,namecoin/namecore,jambolo/bitcoin,yenliangl/bitcoin,GroestlCoin/bitcoin,Xekyo/bitcoin,JeremyRubin/bitcoin,ajtowns/bitcoin,bitcoin/bitcoin,apoelstra/bitcoin,kallewoof/bitcoin,Xekyo/bitcoin,mruddy/bitcoin,dscotese/bitcoin,namecoin/namecoin-core,fujicoin/fujicoin,GroestlCoin/bitcoin,andreaskern/bitcoin,yenliangl/bitcoin,ElementsProject/elements,dscotese/bitcoin,domob1812/bitcoin,rnicoll/bitcoin,domob1812/bitcoin,anditto/bitcoin,domob1812/bitcoin,Xekyo/bitcoin,pataquets/namecoin-core,mm-s/bitcoin,tecnovert/particl-core,dscotese/bitcoin,domob1812/bitcoin,prusnak/bitcoin,MarcoFalke/bitcoin,jambolo/bitcoin,particl/particl-core,jlopp/statoshi,jambolo/bitcoin,andreaskern/bitcoin,sstone/bitcoin,jlopp/statoshi,jambolo/bitcoin,rnicoll/bitcoin,AkioNak/bitcoin,MarcoFalke/bitcoin,jlopp/statoshi,GroestlCoin/GroestlCoin,sipsorcery/bitcoin,yenliangl/bitcoin,sipsorcery/bitcoin,rnicoll/bitcoin,ajtowns/bitcoin,bitcoinsSG/bitcoin,anditto/bitcoin,kallewoof/bitcoin,fujicoin/fujicoin,ajtowns/bitcoin,domob1812/namecore,tecnovert/particl-core,anditto/bitcoin,dscotese/bitcoin,GroestlCoin/bitcoin,MarcoFalke/bitcoin,bitcoinknots/bitcoin,fanquake/bitcoin,instagibbs/bitcoin,particl/particl-core,domob1812/namecore,namecoin/namecoin-core,domob1812/bitcoin,pataquets/namecoin-core,ajtowns/bitcoin,ElementsProject/elements,mm-s/bitcoin,jamesob/bitcoin,anditto/bitcoin,andreaskern/bitcoin,apoelstra/bitcoin,rnicoll/bitcoin,prusnak/bitcoin,prusnak/bitcoin,sipsorcery/bitcoin,GroestlCoin/bitcoin,qtumproject/qtum,achow101/bitcoin,GroestlCoin/GroestlCoin,particl/particl-core,bitcoinknots/bitcoin,sstone/bitcoin,mm-s/bitcoin,namecoin/namecoin-core,fanquake/bitcoin,bitcoinsSG/bitcoin,kallewoof/bitcoin,mruddy/bitcoin,qtumproject/qtum,tecnovert/particl-core,andreaskern/bitcoin,bitcoinsSG/bitcoin,ajtowns/bitcoin,AkioNak/bitcoin,ElementsProject/elements,namecoin/namecore,jambolo/bitcoin,instagibbs/bitcoin,kallewoof/bitcoin,pataquets/namecoin-core,prusnak/bitcoin,namecoin/namecoin-core,achow101/bitcoin,jamesob/bitcoin,GroestlCoin/bitcoin,sstone/bitcoin,AkioNak/bitcoin,namecoin/namecore,JeremyRubin/bitcoin,AkioNak/bitcoin,sipsorcery/bitcoin,fanquake/bitcoin,particl/particl-core,MarcoFalke/bitcoin,pataquets/namecoin-core,fujicoin/fujicoin,tecnovert/particl-core,lateminer/bitcoin,jambolo/bitcoin,bitcoinsSG/bitcoin,namecoin/namecore,GroestlCoin/GroestlCoin,bitcoinsSG/bitcoin,MarcoFalke/bitcoin,qtumproject/qtum,bitcoin/bitcoin,anditto/bitcoin,GroestlCoin/GroestlCoin,fujicoin/fujicoin,dscotese/bitcoin,sipsorcery/bitcoin,bitcoin/bitcoin,prusnak/bitcoin,sstone/bitcoin,GroestlCoin/GroestlCoin,namecoin/namecoin-core,prusnak/bitcoin,ElementsProject/elements,AkioNak/bitcoin,MarcoFalke/bitcoin,qtumproject/qtum,instagibbs/bitcoin,fanquake/bitcoin,mruddy/bitcoin,ajtowns/bitcoin,lateminer/bitcoin,qtumproject/qtum,apoelstra/bitcoin,bitcoinsSG/bitcoin,mruddy/bitcoin,apoelstra/bitcoin,achow101/bitcoin,andreaskern/bitcoin,bitcoinknots/bitcoin,GroestlCoin/GroestlCoin,sipsorcery/bitcoin,fujicoin/fujicoin,bitcoin/bitcoin,jlopp/statoshi,JeremyRubin/bitcoin,tecnovert/particl-core,yenliangl/bitcoin