Skip to content

Commit c72204e

Browse files
author
Jeff Garzik
committed
Merge pull request #3718 from jgarzik/pubkey-size
script: tighten multisig non-standard rules: do not relay pubkeys above 65 bytes
2 parents 4fd082d + 595b6d8 commit c72204e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/script.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1261,7 +1261,7 @@ bool Solver(const CScript& scriptPubKey, txnouttype& typeRet, vector<vector<unsi
12611261
// Template matching opcodes:
12621262
if (opcode2 == OP_PUBKEYS)
12631263
{
1264-
while (vch1.size() >= 33 && vch1.size() <= 120)
1264+
while (vch1.size() >= 33 && vch1.size() <= 65)
12651265
{
12661266
vSolutionsRet.push_back(vch1);
12671267
if (!script1.GetOp(pc1, opcode1, vch1))
@@ -1275,7 +1275,7 @@ bool Solver(const CScript& scriptPubKey, txnouttype& typeRet, vector<vector<unsi
12751275

12761276
if (opcode2 == OP_PUBKEY)
12771277
{
1278-
if (vch1.size() < 33 || vch1.size() > 120)
1278+
if (vch1.size() < 33 || vch1.size() > 65)
12791279
break;
12801280
vSolutionsRet.push_back(vch1);
12811281
}

0 commit comments

Comments
 (0)