[POLICY] Make sending to future native witness outputs standard

This commit is contained in:
Pieter Wuille
2019-04-18 12:46:07 -07:00
parent 2d4f70cabd
commit c634b1e207
2 changed files with 6 additions and 6 deletions

View File

@@ -59,7 +59,7 @@ bool IsStandard(const CScript& scriptPubKey, txnouttype& whichType)
std::vector<std::vector<unsigned char> > vSolutions;
whichType = Solver(scriptPubKey, vSolutions);
if (whichType == TX_NONSTANDARD || whichType == TX_WITNESS_UNKNOWN) {
if (whichType == TX_NONSTANDARD) {
return false;
} else if (whichType == TX_MULTISIG) {
unsigned char m = vSolutions.front()[0];