qa: Add test for standardness of segwit v0 outputs

Github-Pull: #8381
Rebased-From: c59c434b7d1211c13f7904b9bc675e16910a1c0a
This commit is contained in:
Suhas Daftuar
2016-07-22 11:09:45 -04:00
committed by Wladimir J. van der Laan
parent f84ee3dab6
commit 4f7f531af6
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;