Fix sendrawtransaction hang when sending a tx already in mempool
Fix sendrawtransaction hang when sending a tx already in mempool

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