qa: Add test for standardness of segwit v0 outputs

This commit is contained in:
Suhas Daftuar
2016-07-22 11:09:45 -04:00
committed by Johnson Lau
parent 1ffaff2f74
commit c59c434b7d
2 changed files with 79 additions and 1 deletions

View File

@@ -49,7 +49,7 @@ bool IsStandard(const CScript& scriptPubKey, txnouttype& whichType, const bool w
} else if (whichType == TX_NULL_DATA &&
(!fAcceptDatacarrier || scriptPubKey.size() > nMaxDatacarrierBytes))
return false;
else if (!witnessEnabled && (whichType == TX_WITNESS_V0_KEYHASH || whichType == TX_WITNESS_V0_SCRIPTHASH))
return false;