Track difference between scriptPubKey and P2SH execution in IsMine
Track difference between scriptPubKey and P2SH execution in IsMine

Inside IsMine we care about the distinction between scriptPubKey execution
and P2SH redeemScript execution. The consensus code does not care about this
distinction, and thus SigVersion does not have a field for P2SH. As the IsMine
code will care, it uses a separate enum with more fields.

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