mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +02:00
Make withdraw-combines combining to > MAX_MONEY / 100 non-std
This commit is contained in:
parent
e4d23926a7
commit
3ab63b48e4
1 changed files with 7 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue