[tests] Tidy up receivedby.py
[tests] Tidy up receivedby.py

- Fix flake8 warnings
- Remove the useless get_sub_array_from_array() function
- Reduce runtime for receivedby.py by about half by only using two nodes

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