mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-05 10:42:13 +02:00
Replace remaining "520" magic numbers with MAX_SCRIPT_ELEMENT_SIZE
This commit is contained in:
@@ -111,7 +111,7 @@ bool IsStandardTx(const CTransaction& tx, const std::optional<unsigned>& max_dat
|
||||
for (const CTxIn& txin : tx.vin)
|
||||
{
|
||||
// Biggest 'standard' txin involving only keys is a 15-of-15 P2SH
|
||||
// multisig with compressed keys (remember the 520 byte limit on
|
||||
// multisig with compressed keys (remember the MAX_SCRIPT_ELEMENT_SIZE byte limit on
|
||||
// redeemScript size). That works out to a (15*(33+1))+3=513 byte
|
||||
// redeemScript, 513+1+15*(73+1)+3=1627 bytes of scriptSig, which
|
||||
// we round off to 1650(MAX_STANDARD_SCRIPTSIG_SIZE) bytes for
|
||||
|
||||
Reference in New Issue
Block a user