Make withdraw-combines combining to > MAX_MONEY / 100 non-std

This commit is contained in:
Matt Corallo 2016-03-18 14:38:11 -07:00 committed by Gregory Sanders
parent e4d23926a7
commit 3ab63b48e4

View file

@ -120,8 +120,14 @@ bool AreInputsStandard(const CTransaction& tx, const CCoinsViewCache& mapInputs)
{
const CTxOut& prev = mapInputs.GetOutputFor(tx.vin[i]);
if (prev.scriptPubKey.IsWithdrawLock())
if (prev.scriptPubKey.IsWithdrawLock()) {
if (!tx.vin[i].scriptSig.IsWithdrawProof()) {
if (tx.vout.size() < i)
if (!tx.vout[i].nValue.IsAmount() || tx.vout[i].nValue.GetAmount() > MAX_MONEY / 100)
return false;
}
continue;
}
// Biggest 'standard' txin is a 15-of-15 P2SH multisig with compressed
// keys. (remember the 520 byte limit on redeemScript size) That works