test: add unit test for non-standard bare multisig txs
test: add unit test for non-standard bare multisig txs

The function IsStandardTx() returns rejection reason "bare-multisig" if the
transaction has a bare multisig output and the policy flag fIsBareMultisigStd
is false (set by the boolean command-line argument "-permitbaremultisig" -- for
the unit test, we simply set the global flag variable directly).

pstratem/bitcoin,achow101/bitcoin,jambolo/bitcoin,midnightmagic/bitcoin,cdecker/bitcoin,ElementsProject/elements,instagibbs/bitcoin,bitcoin/bitcoin,mm-s/bitcoin,mm-s/bitcoin,andreaskern/bitcoin,instagibbs/bitcoin,prusnak/bitcoin,tecnovert/particl-core,Sjors/bitcoin,rnicoll/bitcoin,Xekyo/bitcoin,dscotese/bitcoin,kallewoof/bitcoin,monacoinproject/monacoin,tjps/bitcoin,monacoinproject/monacoin,lateminer/bitcoin,jnewbery/bitcoin,jambolo/bitcoin,domob1812/namecore,jnewbery/bitcoin,andreaskern/bitcoin,mitchellcash/bitcoin,dscotese/bitcoin,GroestlCoin/bitcoin,tecnovert/particl-core,anditto/bitcoin,mruddy/bitcoin,sstone/bitcoin,mitchellcash/bitcoin,Sjors/bitcoin,jlopp/statoshi,midnightmagic/bitcoin,tecnovert/particl-core,particl/particl-core,bitcoinknots/bitcoin,jonasschnelli/bitcoin,apoelstra/bitcoin,dscotese/bitcoin,fanquake/bitcoin,namecoin/namecoin-core,apoelstra/bitcoin,bitcoin/bitcoin,DigitalPandacoin/pandacoin,andreaskern/bitcoin,namecoin/namecoin-core,jonasschnelli/bitcoin,namecoin/namecoin-core,rnicoll/dogecoin,bitcoinknots/bitcoin,pataquets/namecoin-core,litecoin-project/litecoin,sipsorcery/bitcoin,cdecker/bitcoin,domob1812/namecore,fujicoin/fujicoin,Xekyo/bitcoin,MarcoFalke/bitcoin,tjps/bitcoin,AkioNak/bitcoin,mruddy/bitcoin,bitcoinsSG/bitcoin,GroestlCoin/GroestlCoin,domob1812/bitcoin,yenliangl/bitcoin,sstone/bitcoin,MarcoFalke/bitcoin,midnightmagic/bitcoin,rnicoll/dogecoin,GroestlCoin/bitcoin,achow101/bitcoin,MeshCollider/bitcoin,practicalswift/bitcoin,MarcoFalke/bitcoin,ahmedbodi/vertcoin,jlopp/statoshi,fujicoin/fujicoin,tecnovert/particl-core,jlopp/statoshi,midnightmagic/bitcoin,peercoin/peercoin,bitcoinsSG/bitcoin,jamesob/bitcoin,ahmedbodi/vertcoin,domob1812/namecore,ajtowns/bitcoin,MeshCollider/bitcoin,rnicoll/dogecoin,EthanHeilman/bitcoin,particl/particl-core,prusnak/bitcoin,yenliangl/bitcoin,sipsorcery/bitcoin,bitcoinknots/bitcoin,JeremyRubin/bitcoin,monacoinproject/monacoin,prusnak/bitcoin,jambolo/bitcoin,practicalswift/bitcoin,bitcoin/bitcoin,yenliangl/bitcoin,sipsorcery/bitcoin,MarcoFalke/bitcoin,alecalve/bitcoin,jnewbery/bitcoin,achow101/bitcoin,rnicoll/bitcoin,instagibbs/bitcoin,vertcoin/vertcoin,rnicoll/dogecoin,n1bor/bitcoin,kallewoof/bitcoin,bitcoinsSG/bitcoin,dscotese/bitcoin,jonasschnelli/bitcoin,peercoin/peercoin,tjps/bitcoin,JeremyRubin/bitcoin,jambolo/bitcoin,JeremyRubin/bitcoin,pstratem/bitcoin,namecoin/namecore,MeshCollider/bitcoin,qtumproject/qtum,particl/particl-core,peercoin/peercoin,n1bor/bitcoin,anditto/bitcoin,apoelstra/bitcoin,jonasschnelli/bitcoin,kallewoof/bitcoin,alecalve/bitcoin,mitchellcash/bitcoin,EthanHeilman/bitcoin,JeremyRubin/bitcoin,bitcoin/bitcoin,andreaskern/bitcoin,MeshCollider/bitcoin,qtumproject/qtum,dscotese/bitcoin,jnewbery/bitcoin,lateminer/bitcoin,Xekyo/bitcoin,ElementsProject/elements,n1bor/bitcoin,Sjors/bitcoin,bitcoinsSG/bitcoin,litecoin-project/litecoin,jamesob/bitcoin,namecoin/namecore,bitcoinsSG/bitcoin,domob1812/bitcoin,tjps/bitcoin,practicalswift/bitcoin,pataquets/namecoin-core,practicalswift/bitcoin,tecnovert/particl-core,mm-s/bitcoin,yenliangl/bitcoin,anditto/bitcoin,practicalswift/bitcoin,jamesob/bitcoin,ajtowns/bitcoin,ElementsProject/elements,MarcoFalke/bitcoin,yenliangl/bitcoin,bitcoin/bitcoin,jlopp/statoshi,particl/particl-core,peercoin/peercoin,mruddy/bitcoin,pstratem/bitcoin,monacoinproject/monacoin,particl/particl-core,fanquake/bitcoin,jnewbery/bitcoin,DigitalPandacoin/pandacoin,qtumproject/qtum,Sjors/bitcoin,ajtowns/bitcoin,namecoin/namecore,tjps/bitcoin,jamesob/bitcoin,gjhiggins/vcoincore,cdecker/bitcoin,alecalve/bitcoin,ajtowns/bitcoin,GroestlCoin/bitcoin,qtumproject/qtum,jambolo/bitcoin,GroestlCoin/GroestlCoin,AkioNak/bitcoin,rnicoll/bitcoin,fanquake/bitcoin,litecoin-project/litecoin,sipsorcery/bitcoin,vertcoin/vertcoin,instagibbs/bitcoin,pstratem/bitcoin,ElementsProject/elements,rnicoll/bitcoin,ahmedbodi/vertcoin,bitcoin/bitcoin,n1bor/bitcoin,bitcoinknots/bitcoin,cdecker/bitcoin,gjhiggins/vcoincore,vertcoin/vertcoin,AkioNak/bitcoin,ajtowns/bitcoin,MeshCollider/bitcoin,anditto/bitcoin,instagibbs/bitcoin,jambolo/bitcoin,GroestlCoin/bitcoin,fanquake/bitcoin,pataquets/namecoin-core,practicalswift/bitcoin,achow101/bitcoin,monacoinproject/monacoin,alecalve/bitcoin,mm-s/bitcoin,EthanHeilman/bitcoin,MeshCollider/bitcoin,AkioNak/bitcoin,pataquets/namecoin-core,jlopp/statoshi,litecoin-project/litecoin,lateminer/bitcoin,namecoin/namecoin-core,GroestlCoin/GroestlCoin,sstone/bitcoin,fanquake/bitcoin,ElementsProject/elements,GroestlCoin/bitcoin,bitcoinknots/bitcoin,domob1812/namecore,namecoin/namecoin-core,alecalve/bitcoin,fujicoin/fujicoin,gjhiggins/vcoincore,dscotese/bitcoin,sstone/bitcoin,jamesob/bitcoin,tecnovert/particl-core,lateminer/bitcoin,EthanHeilman/bitcoin,pstratem/bitcoin,litecoin-project/litecoin,lateminer/bitcoin,domob1812/namecore,anditto/bitcoin,namecoin/namecore,qtumproject/qtum,Xekyo/bitcoin,anditto/bitcoin,peercoin/peercoin,lateminer/bitcoin,DigitalPandacoin/pandacoin,sstone/bitcoin,namecoin/namecore,domob1812/bitcoin,gjhiggins/vcoincore,fanquake/bitcoin,Xekyo/bitcoin,kallewoof/bitcoin,andreaskern/bitcoin,cdecker/bitcoin,mm-s/bitcoin,kallewoof/bitcoin,vertcoin/vertcoin,vertcoin/vertcoin,jlopp/statoshi,GroestlCoin/GroestlCoin,jamesob/bitcoin,mruddy/bitcoin,achow101/bitcoin,apoelstra/bitcoin,ElementsProject/elements,pataquets/namecoin-core,sipsorcery/bitcoin,cdecker/bitcoin,mitchellcash/bitcoin,domob1812/bitcoin,apoelstra/bitcoin,domob1812/bitcoin,litecoin-project/litecoin,achow101/bitcoin,rnicoll/dogecoin,ajtowns/bitcoin,qtumproject/qtum,midnightmagic/bitcoin,prusnak/bitcoin,namecoin/namecore,Xekyo/bitcoin,yenliangl/bitcoin,DigitalPandacoin/pandacoin,pstratem/bitcoin,DigitalPandacoin/pandacoin,MarcoFalke/bitcoin,monacoinproject/monacoin,mitchellcash/bitcoin,n1bor/bitcoin,instagibbs/bitcoin,pataquets/namecoin-core,qtumproject/qtum,midnightmagic/bitcoin,mitchellcash/bitcoin,andreaskern/bitcoin,tjps/bitcoin,domob1812/namecore,EthanHeilman/bitcoin,AkioNak/bitcoin,EthanHeilman/bitcoin,AkioNak/bitcoin,prusnak/bitcoin,GroestlCoin/GroestlCoin,domob1812/bitcoin,JeremyRubin/bitcoin,mm-s/bitcoin,gjhiggins/vcoincore,fujicoin/fujicoin,DigitalPandacoin/pandacoin,ahmedbodi/vertcoin,apoelstra/bitcoin,sstone/bitcoin,gjhiggins/vcoincore,particl/particl-core,bitcoinsSG/bitcoin,GroestlCoin/GroestlCoin,fujicoin/fujicoin,n1bor/bitcoin,Sjors/bitcoin,prusnak/bitcoin,peercoin/peercoin,JeremyRubin/bitcoin,GroestlCoin/bitcoin,namecoin/namecoin-core,ahmedbodi/vertcoin,jonasschnelli/bitcoin,kallewoof/bitcoin,mruddy/bitcoin,fujicoin/fujicoin,ahmedbodi/vertcoin,vertcoin/vertcoin,mruddy/bitcoin,sipsorcery/bitcoin,alecalve/bitcoin,rnicoll/bitcoin,rnicoll/bitcoin