[tests] Remove rpc property from TestNode in p2p-segwit.py.
[tests] Remove rpc property from TestNode in p2p-segwit.py.

Change the helper methods to functions which take a node and a p2p
connection as arguments.

Flowdalic/bitcoin,JeremyRubin/bitcoin,TheBlueMatt/bitcoin,andreaskern/bitcoin,fujicoin/fujicoin,laudaa/bitcoin,mb300sd/bitcoin,laudaa/bitcoin,CryptArc/bitcoin,starwels/starwels,peercoin/peercoin,apoelstra/bitcoin,brandonrobertz/namecoin-core,fanquake/bitcoin,ElementsProject/elements,namecoin/namecoin-core,vertcoin/vertcoin,kazcw/bitcoin,FeatherCoin/Feathercoin,TheBlueMatt/bitcoin,r8921039/bitcoin,jamesob/bitcoin,MazaCoin/maza,rnicoll/dogecoin,TheBlueMatt/bitcoin,r8921039/bitcoin,fujicoin/fujicoin,dscotese/bitcoin,BTCGPU/BTCGPU,ahmedbodi/vertcoin,laudaa/bitcoin,Rav3nPL/bitcoin,Sjors/bitcoin,starwels/starwels,DigitalPandacoin/pandacoin,randy-waterhouse/bitcoin,GroestlCoin/bitcoin,jamesob/bitcoin,brandonrobertz/namecoin-core,untrustbank/litecoin,OmniLayer/omnicore,rawodb/bitcoin,FeatherCoin/Feathercoin,tjps/bitcoin,ahmedbodi/vertcoin,apoelstra/bitcoin,jtimon/bitcoin,maaku/bitcoin,MeshCollider/bitcoin,monacoinproject/monacoin,MarcoFalke/bitcoin,stamhe/bitcoin,GroestlCoin/bitcoin,paveljanik/bitcoin,alecalve/bitcoin,droark/bitcoin,particl/particl-core,MeshCollider/bitcoin,ericshawlinux/bitcoin,ryanofsky/bitcoin,sebrandon1/bitcoin,thrasher-/litecoin,particl/particl-core,untrustbank/litecoin,sstone/bitcoin,AkioNak/bitcoin,GroestlCoin/GroestlCoin,Christewart/bitcoin,namecoin/namecoin-core,mb300sd/bitcoin,TheBlueMatt/bitcoin,globaltoken/globaltoken,FeatherCoin/Feathercoin,Bushstar/UFO-Project,achow101/bitcoin,achow101/bitcoin,tjps/bitcoin,practicalswift/bitcoin,domob1812/namecore,anditto/bitcoin,particl/particl-core,sipsorcery/bitcoin,thrasher-/litecoin,mb300sd/bitcoin,pataquets/namecoin-core,maaku/bitcoin,1185/starwels,peercoin/peercoin,h4x3rotab/BTCGPU,digibyte/digibyte,AkioNak/bitcoin,Christewart/bitcoin,mb300sd/bitcoin,MeshCollider/bitcoin,anditto/bitcoin,Rav3nPL/bitcoin,vertcoin/vertcoin,maaku/bitcoin,lbryio/lbrycrd,afk11/bitcoin,Flowdalic/bitcoin,pataquets/namecoin-core,lbryio/lbrycrd,lateminer/bitcoin,yenliangl/bitcoin,practicalswift/bitcoin,yenliangl/bitcoin,nikkitan/bitcoin,apoelstra/bitcoin,sebrandon1/bitcoin,Kogser/bitcoin,paveljanik/bitcoin,Bushstar/UFO-Project,jlopp/statoshi,jonasschnelli/bitcoin,bespike/litecoin,jonasschnelli/bitcoin,Sjors/bitcoin,andreaskern/bitcoin,instagibbs/bitcoin,sipsorcery/bitcoin,Bushstar/UFO-Project,monacoinproject/monacoin,jamesob/bitcoin,jambolo/bitcoin,pstratem/bitcoin,joshrabinowitz/bitcoin,cdecker/bitcoin,Xekyo/bitcoin,peercoin/peercoin,BTCGPU/BTCGPU,brandonrobertz/namecoin-core,midnightmagic/bitcoin,ryanofsky/bitcoin,maaku/bitcoin,ahmedbodi/vertcoin,myriadcoin/myriadcoin,ElementsProject/elements,jmcorgan/bitcoin,wellenreiter01/Feathercoin,mb300sd/bitcoin,sstone/bitcoin,joshrabinowitz/bitcoin,alecalve/bitcoin,ryanofsky/bitcoin,peercoin/peercoin,lbryio/lbrycrd,mitchellcash/bitcoin,kazcw/bitcoin,mruddy/bitcoin,GroestlCoin/bitcoin,thrasher-/litecoin,stamhe/bitcoin,apoelstra/bitcoin,practicalswift/bitcoin,AkioNak/bitcoin,MeshCollider/bitcoin,EthanHeilman/bitcoin,DigitalPandacoin/pandacoin,ajtowns/bitcoin,ajtowns/bitcoin,GlobalBoost/GlobalBoost,namecoin/namecoin-core,domob1812/namecore,EthanHeilman/bitcoin,Kogser/bitcoin,kazcw/bitcoin,rawodb/bitcoin,droark/bitcoin,monacoinproject/monacoin,lbryio/lbrycrd,domob1812/huntercore,fanquake/bitcoin,andreaskern/bitcoin,ryanofsky/bitcoin,brandonrobertz/namecoin-core,jamesob/bitcoin,pstratem/bitcoin,MarcoFalke/bitcoin,wellenreiter01/Feathercoin,GroestlCoin/GroestlCoin,DigitalPandacoin/pandacoin,h4x3rotab/BTCGPU,kallewoof/bitcoin,prusnak/bitcoin,ppcoin/ppcoin,cdecker/bitcoin,alecalve/bitcoin,jtimon/bitcoin,jnewbery/bitcoin,apoelstra/bitcoin,bitcoinknots/bitcoin,rnicoll/dogecoin,guncoin/guncoin,GroestlCoin/GroestlCoin,fanquake/bitcoin,joshrabinowitz/bitcoin,GroestlCoin/GroestlCoin,Xekyo/bitcoin,Xekyo/bitcoin,randy-waterhouse/bitcoin,GlobalBoost/GlobalBoost,donaloconnor/bitcoin,prusnak/bitcoin,jlopp/statoshi,nikkitan/bitcoin,n1bor/bitcoin,deeponion/deeponion,FeatherCoin/Feathercoin,vertcoin/vertcoin,mruddy/bitcoin,cdecker/bitcoin,domob1812/huntercore,sstone/bitcoin,myriadteam/myriadcoin,jambolo/bitcoin,untrustbank/litecoin,namecoin/namecore,gjhiggins/vcoincore,droark/bitcoin,n1bor/bitcoin,h4x3rotab/BTCGPU,bitcoinsSG/bitcoin,afk11/bitcoin,starwels/starwels,untrustbank/litecoin,BTCGPU/BTCGPU,n1bor/bitcoin,kallewoof/bitcoin,brandonrobertz/namecoin-core,ericshawlinux/bitcoin,jambolo/bitcoin,ajtowns/bitcoin,viacoin/viacoin,paveljanik/bitcoin,deeponion/deeponion,mitchellcash/bitcoin,cdecker/bitcoin,r8921039/bitcoin,Kogser/bitcoin,JeremyRubin/bitcoin,dscotese/bitcoin,starwels/starwels,CryptArc/bitcoin,lateminer/bitcoin,bitcoinsSG/bitcoin,RHavar/bitcoin,FeatherCoin/Feathercoin,joshrabinowitz/bitcoin,tecnovert/particl-core,domob1812/bitcoin,pataquets/namecoin-core,digibyte/digibyte,prusnak/bitcoin,paveljanik/bitcoin,ryanofsky/bitcoin,starwels/starwels,DigitalPandacoin/pandacoin,droark/bitcoin,rnicoll/bitcoin,deeponion/deeponion,sstone/bitcoin,MarcoFalke/bitcoin,domob1812/namecore,lbryio/lbrycrd,randy-waterhouse/bitcoin,1185/starwels,domob1812/bitcoin,gjhiggins/vcoincore,mm-s/bitcoin,lateminer/bitcoin,kallewoof/bitcoin,myriadteam/myriadcoin,pstratem/bitcoin,Rav3nPL/bitcoin,wellenreiter01/Feathercoin,1185/starwels,jmcorgan/bitcoin,ericshawlinux/bitcoin,AkioNak/bitcoin,ajtowns/bitcoin,litecoin-project/litecoin,tjps/bitcoin,Kogser/bitcoin,Kogser/bitcoin,myriadteam/myriadcoin,jonasschnelli/bitcoin,sebrandon1/bitcoin,CryptArc/bitcoin,Xekyo/bitcoin,bitcoinsSG/bitcoin,viacoin/viacoin,qtumproject/qtum,practicalswift/bitcoin,GroestlCoin/GroestlCoin,AkioNak/bitcoin,EthanHeilman/bitcoin,donaloconnor/bitcoin,n1bor/bitcoin,qtumproject/qtum,peercoin/peercoin,untrustbank/litecoin,bitcoinsSG/bitcoin,instagibbs/bitcoin,jlopp/statoshi,rnicoll/bitcoin,myriadcoin/myriadcoin,vertcoin/vertcoin,peercoin/peercoin,digibyte/digibyte,donaloconnor/bitcoin,rnicoll/dogecoin,wellenreiter01/Feathercoin,myriadcoin/myriadcoin,mm-s/bitcoin,vmp32k/litecoin,ahmedbodi/vertcoin,jlopp/statoshi,achow101/bitcoin,midnightmagic/bitcoin,stamhe/bitcoin,fanquake/bitcoin,bespike/litecoin,1185/starwels,vmp32k/litecoin,domob1812/bitcoin,bespike/litecoin,sstone/bitcoin,myriadcoin/myriadcoin,namecoin/namecore,viacoin/viacoin,Kogser/bitcoin,domob1812/huntercore,gjhiggins/vcoincore,Kogser/bitcoin,OmniLayer/omnicore,mruddy/bitcoin,jonasschnelli/bitcoin,namecoin/namecore,laudaa/bitcoin,pataquets/namecoin-core,r8921039/bitcoin,mm-s/bitcoin,tecnovert/particl-core,randy-waterhouse/bitcoin,qtumproject/qtum,jtimon/bitcoin,gjhiggins/vcoincore,jmcorgan/bitcoin,JeremyRubin/bitcoin,lbryio/lbrycrd,afk11/bitcoin,GlobalBoost/GlobalBoost,digibyte/digibyte,tjps/bitcoin,qtumproject/qtum,DigitalPandacoin/pandacoin,FeatherCoin/Feathercoin,paveljanik/bitcoin,yenliangl/bitcoin,Kogser/bitcoin,GlobalBoost/GlobalBoost,droark/bitcoin,jtimon/bitcoin,MazaCoin/maza,Flowdalic/bitcoin,RHavar/bitcoin,starwels/starwels,untrustbank/litecoin,globaltoken/globaltoken,pstratem/bitcoin,Rav3nPL/bitcoin,mruddy/bitcoin,ElementsProject/elements,GlobalBoost/GlobalBoost,MazaCoin/maza,andreaskern/bitcoin,ElementsProject/elements,pataquets/namecoin-core,lateminer/bitcoin,rawodb/bitcoin,achow101/bitcoin,viacoin/viacoin,vmp32k/litecoin,mitchellcash/bitcoin,gjhiggins/vcoincore,ericshawlinux/bitcoin,bitcoin/bitcoin,ahmedbodi/vertcoin,gjhiggins/vcoincore,namecoin/namecore,vmp32k/litecoin,domob1812/namecore,afk11/bitcoin,anditto/bitcoin,donaloconnor/bitcoin,namecoin/namecore,jambolo/bitcoin,prusnak/bitcoin,Bushstar/UFO-Project,lateminer/bitcoin,alecalve/bitcoin,OmniLayer/omnicore,GroestlCoin/bitcoin,dscotese/bitcoin,r8921039/bitcoin,guncoin/guncoin,litecoin-project/litecoin,n1bor/bitcoin,domob1812/huntercore,monacoinproject/monacoin,Flowdalic/bitcoin,stamhe/bitcoin,myriadteam/myriadcoin,wellenreiter01/Feathercoin,GroestlCoin/GroestlCoin,tjps/bitcoin,mitchellcash/bitcoin,tecnovert/particl-core,ahmedbodi/vertcoin,RHavar/bitcoin,domob1812/bitcoin,brandonrobertz/namecoin-core,BTCGPU/BTCGPU,yenliangl/bitcoin,MarcoFalke/bitcoin,litecoin-project/litecoin,prusnak/bitcoin,anditto/bitcoin,EthanHeilman/bitcoin,anditto/bitcoin,cdecker/bitcoin,dscotese/bitcoin,rnicoll/bitcoin,qtumproject/qtum,deeponion/deeponion,rawodb/bitcoin,MarcoFalke/bitcoin,CryptArc/bitcoin,viacoin/viacoin,Sjors/bitcoin,kallewoof/bitcoin,lateminer/bitcoin,1185/starwels,guncoin/guncoin,RHavar/bitcoin,jnewbery/bitcoin,kazcw/bitcoin,midnightmagic/bitcoin,globaltoken/globaltoken,rnicoll/bitcoin,myriadcoin/myriadcoin,fujicoin/fujicoin,sstone/bitcoin,randy-waterhouse/bitcoin,mm-s/bitcoin,particl/particl-core,OmniLayer/omnicore,mm-s/bitcoin,thrasher-/litecoin,afk11/bitcoin,rawodb/bitcoin,donaloconnor/bitcoin,globaltoken/globaltoken,guncoin/guncoin,Christewart/bitcoin,jlopp/statoshi,bespike/litecoin,Rav3nPL/bitcoin,MeshCollider/bitcoin,Kogser/bitcoin,pstratem/bitcoin,Kogser/bitcoin,n1bor/bitcoin,jtimon/bitcoin,mitchellcash/bitcoin,midnightmagic/bitcoin,cdecker/bitcoin,andreaskern/bitcoin,BTCGPU/BTCGPU,guncoin/guncoin,ppcoin/ppcoin,vmp32k/litecoin,Flowdalic/bitcoin,donaloconnor/bitcoin,nikkitan/bitcoin,practicalswift/bitcoin,instagibbs/bitcoin,jambolo/bitcoin,GlobalBoost/GlobalBoost,bespike/litecoin,joshrabinowitz/bitcoin,prusnak/bitcoin,ajtowns/bitcoin,MazaCoin/maza,globaltoken/globaltoken,fanquake/bitcoin,Kogser/bitcoin,ajtowns/bitcoin,jmcorgan/bitcoin,jmcorgan/bitcoin,rnicoll/dogecoin,EthanHeilman/bitcoin,nikkitan/bitcoin,sipsorcery/bitcoin,jmcorgan/bitcoin,midnightmagic/bitcoin,sebrandon1/bitcoin,bitcoinsSG/bitcoin,monacoinproject/monacoin,OmniLayer/omnicore,paveljanik/bitcoin,Sjors/bitcoin,litecoin-project/litecoin,CryptArc/bitcoin,bitcoinknots/bitcoin,nikkitan/bitcoin,RHavar/bitcoin,nikkitan/bitcoin,lbryio/lbrycrd,bespike/litecoin,dscotese/bitcoin,myriadteam/myriadcoin,mm-s/bitcoin,jonasschnelli/bitcoin,sipsorcery/bitcoin,achow101/bitcoin,domob1812/bitcoin,afk11/bitcoin,sebrandon1/bitcoin,bitcoinknots/bitcoin,viacoin/viacoin,namecoin/namecoin-core,achow101/bitcoin,jambolo/bitcoin,sebrandon1/bitcoin,MeshCollider/bitcoin,thrasher-/litecoin,JeremyRubin/bitcoin,sipsorcery/bitcoin,maaku/bitcoin,JeremyRubin/bitcoin,namecoin/namecore,particl/particl-core,jamesob/bitcoin,domob1812/huntercore,ericshawlinux/bitcoin,Xekyo/bitcoin,midnightmagic/bitcoin,mruddy/bitcoin,dscotese/bitcoin,Xekyo/bitcoin,joshrabinowitz/bitcoin,tecnovert/particl-core,domob1812/bitcoin,yenliangl/bitcoin,apoelstra/bitcoin,wellenreiter01/Feathercoin,litecoin-project/litecoin,Christewart/bitcoin,bitcoin/bitcoin,Rav3nPL/bitcoin,sipsorcery/bitcoin,deeponion/deeponion,namecoin/namecoin-core,stamhe/bitcoin,bitcoin/bitcoin,mitchellcash/bitcoin,andreaskern/bitcoin,tecnovert/particl-core,h4x3rotab/BTCGPU,jlopp/statoshi,stamhe/bitcoin,Flowdalic/bitcoin,ryanofsky/bitcoin,kazcw/bitcoin,fanquake/bitcoin,rnicoll/bitcoin,TheBlueMatt/bitcoin,jnewbery/bitcoin,digibyte/digibyte,practicalswift/bitcoin,domob1812/namecore,bitcoinknots/bitcoin,mruddy/bitcoin,laudaa/bitcoin,kazcw/bitcoin,ppcoin/ppcoin,kallewoof/bitcoin,MazaCoin/maza,Kogser/bitcoin,qtumproject/qtum,GlobalBoost/GlobalBoost,yenliangl/bitcoin,instagibbs/bitcoin,maaku/bitcoin,ElementsProject/elements,RHavar/bitcoin,alecalve/bitcoin,rawodb/bitcoin,vertcoin/vertcoin,r8921039/bitcoin,fujicoin/fujicoin,tjps/bitcoin,MazaCoin/maza,namecoin/namecoin-core,mb300sd/bitcoin,instagibbs/bitcoin,bitcoinsSG/bitcoin,bitcoin/bitcoin,vertcoin/vertcoin,CryptArc/bitcoin,pstratem/bitcoin,deeponion/deeponion,myriadteam/myriadcoin,monacoinproject/monacoin,ppcoin/ppcoin,thrasher-/litecoin,jnewbery/bitcoin,ElementsProject/elements,1185/starwels,Bushstar/UFO-Project,MarcoFalke/bitcoin,h4x3rotab/BTCGPU,domob1812/namecore,bitcoinknots/bitcoin,laudaa/bitcoin,globaltoken/globaltoken,Christewart/bitcoin,BTCGPU/BTCGPU,TheBlueMatt/bitcoin,guncoin/guncoin,Bushstar/UFO-Project,jtimon/bitcoin,EthanHeilman/bitcoin,OmniLayer/omnicore,alecalve/bitcoin,AkioNak/bitcoin,instagibbs/bitcoin,DigitalPandacoin/pandacoin,myriadcoin/myriadcoin,bitcoin/bitcoin,Sjors/bitcoin,rnicoll/bitcoin,domob1812/huntercore,ericshawlinux/bitcoin,litecoin-project/litecoin,GroestlCoin/bitcoin,rnicoll/dogecoin,jnewbery/bitcoin,fujicoin/fujicoin,digibyte/digibyte,vmp32k/litecoin,Christewart/bitcoin,qtumproject/qtum,randy-waterhouse/bitcoin,h4x3rotab/BTCGPU,tecnovert/particl-core,GroestlCoin/bitcoin,particl/particl-core,pataquets/namecoin-core,kallewoof/bitcoin,JeremyRubin/bitcoin,jamesob/bitcoin,bitcoin/bitcoin,anditto/bitcoin,fujicoin/fujicoin,droark/bitcoin