[refactor] use CheckTxScripts, TrimFlags, FillFlags
[refactor] use CheckTxScripts, TrimFlags, FillFlags

Co-authored-by: Johnson Lau <9ac46fbc76984171b6dfce6be037532f6d218ea4@xbt.hk>

sstone/bitcoin,jambolo/bitcoin,particl/particl-core,bitcoinsSG/bitcoin,domob1812/bitcoin,anditto/bitcoin,GroestlCoin/GroestlCoin,instagibbs/bitcoin,tecnovert/particl-core,yenliangl/bitcoin,instagibbs/bitcoin,sstone/bitcoin,MarcoFalke/bitcoin,jlopp/statoshi,qtumproject/qtum,mm-s/bitcoin,ElementsProject/elements,jlopp/statoshi,pataquets/namecoin-core,instagibbs/bitcoin,domob1812/namecore,pataquets/namecoin-core,namecoin/namecore,bitcoinknots/bitcoin,pataquets/namecoin-core,andreaskern/bitcoin,particl/particl-core,Sjors/bitcoin,particl/particl-core,tecnovert/particl-core,n1bor/bitcoin,anditto/bitcoin,MeshCollider/bitcoin,GroestlCoin/GroestlCoin,mruddy/bitcoin,mruddy/bitcoin,rnicoll/bitcoin,domob1812/bitcoin,kallewoof/bitcoin,MeshCollider/bitcoin,rnicoll/bitcoin,fujicoin/fujicoin,kallewoof/bitcoin,domob1812/bitcoin,rnicoll/bitcoin,namecoin/namecore,fujicoin/fujicoin,MeshCollider/bitcoin,GroestlCoin/bitcoin,GroestlCoin/bitcoin,qtumproject/qtum,achow101/bitcoin,n1bor/bitcoin,namecoin/namecoin-core,jambolo/bitcoin,MarcoFalke/bitcoin,achow101/bitcoin,Sjors/bitcoin,qtumproject/qtum,bitcoin/bitcoin,ajtowns/bitcoin,bitcoinknots/bitcoin,tecnovert/particl-core,andreaskern/bitcoin,mm-s/bitcoin,domob1812/namecore,sipsorcery/bitcoin,pataquets/namecoin-core,particl/particl-core,GroestlCoin/bitcoin,domob1812/namecore,AkioNak/bitcoin,fujicoin/fujicoin,AkioNak/bitcoin,mm-s/bitcoin,JeremyRubin/bitcoin,prusnak/bitcoin,bitcoinknots/bitcoin,bitcoinsSG/bitcoin,rnicoll/bitcoin,domob1812/namecore,jamesob/bitcoin,sipsorcery/bitcoin,namecoin/namecore,ElementsProject/elements,rnicoll/bitcoin,MeshCollider/bitcoin,ElementsProject/elements,Xekyo/bitcoin,andreaskern/bitcoin,apoelstra/bitcoin,namecoin/namecoin-core,prusnak/bitcoin,namecoin/namecore,jlopp/statoshi,MarcoFalke/bitcoin,achow101/bitcoin,AkioNak/bitcoin,andreaskern/bitcoin,lateminer/bitcoin,mm-s/bitcoin,bitcoin/bitcoin,yenliangl/bitcoin,kallewoof/bitcoin,domob1812/namecore,Sjors/bitcoin,ElementsProject/elements,fanquake/bitcoin,bitcoin/bitcoin,prusnak/bitcoin,mruddy/bitcoin,jambolo/bitcoin,dscotese/bitcoin,particl/particl-core,apoelstra/bitcoin,mruddy/bitcoin,jamesob/bitcoin,fanquake/bitcoin,anditto/bitcoin,dscotese/bitcoin,jamesob/bitcoin,namecoin/namecoin-core,ElementsProject/elements,n1bor/bitcoin,n1bor/bitcoin,dscotese/bitcoin,achow101/bitcoin,bitcoinsSG/bitcoin,rnicoll/bitcoin,GroestlCoin/GroestlCoin,Xekyo/bitcoin,bitcoin/bitcoin,prusnak/bitcoin,JeremyRubin/bitcoin,Xekyo/bitcoin,particl/particl-core,apoelstra/bitcoin,Xekyo/bitcoin,lateminer/bitcoin,JeremyRubin/bitcoin,jambolo/bitcoin,MeshCollider/bitcoin,fanquake/bitcoin,instagibbs/bitcoin,dscotese/bitcoin,namecoin/namecoin-core,bitcoinknots/bitcoin,lateminer/bitcoin,qtumproject/qtum,JeremyRubin/bitcoin,bitcoinsSG/bitcoin,fujicoin/fujicoin,bitcoin/bitcoin,ajtowns/bitcoin,n1bor/bitcoin,jlopp/statoshi,namecoin/namecore,domob1812/bitcoin,dscotese/bitcoin,qtumproject/qtum,yenliangl/bitcoin,Sjors/bitcoin,namecoin/namecoin-core,sipsorcery/bitcoin,sstone/bitcoin,fanquake/bitcoin,GroestlCoin/bitcoin,sipsorcery/bitcoin,anditto/bitcoin,dscotese/bitcoin,lateminer/bitcoin,yenliangl/bitcoin,ElementsProject/elements,mm-s/bitcoin,anditto/bitcoin,Sjors/bitcoin,GroestlCoin/bitcoin,domob1812/namecore,AkioNak/bitcoin,tecnovert/particl-core,andreaskern/bitcoin,AkioNak/bitcoin,fanquake/bitcoin,jambolo/bitcoin,instagibbs/bitcoin,n1bor/bitcoin,domob1812/bitcoin,achow101/bitcoin,GroestlCoin/GroestlCoin,apoelstra/bitcoin,sstone/bitcoin,yenliangl/bitcoin,qtumproject/qtum,Xekyo/bitcoin,mruddy/bitcoin,mm-s/bitcoin,ajtowns/bitcoin,kallewoof/bitcoin,qtumproject/qtum,GroestlCoin/GroestlCoin,prusnak/bitcoin,jlopp/statoshi,pataquets/namecoin-core,yenliangl/bitcoin,bitcoinsSG/bitcoin,JeremyRubin/bitcoin,namecoin/namecoin-core,bitcoinsSG/bitcoin,GroestlCoin/bitcoin,ajtowns/bitcoin,bitcoin/bitcoin,fanquake/bitcoin,lateminer/bitcoin,MarcoFalke/bitcoin,tecnovert/particl-core,jamesob/bitcoin,lateminer/bitcoin,kallewoof/bitcoin,jlopp/statoshi,MarcoFalke/bitcoin,GroestlCoin/GroestlCoin,fujicoin/fujicoin,fujicoin/fujicoin,Xekyo/bitcoin,jamesob/bitcoin,sipsorcery/bitcoin,jamesob/bitcoin,domob1812/bitcoin,AkioNak/bitcoin,JeremyRubin/bitcoin,namecoin/namecore,kallewoof/bitcoin,prusnak/bitcoin,apoelstra/bitcoin,ajtowns/bitcoin,ajtowns/bitcoin,bitcoinknots/bitcoin,instagibbs/bitcoin,achow101/bitcoin,sstone/bitcoin,sstone/bitcoin,tecnovert/particl-core,anditto/bitcoin,andreaskern/bitcoin,pataquets/namecoin-core,apoelstra/bitcoin,MarcoFalke/bitcoin,MeshCollider/bitcoin,mruddy/bitcoin,jambolo/bitcoin,sipsorcery/bitcoin