mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 04:52:59 +01:00
script: tighten multisig non-standard rules: do not relay pubkeys above 65 bytes
This commit is contained in:
parent
76a77059f3
commit
595b6d88d4
@ -1261,7 +1261,7 @@ bool Solver(const CScript& scriptPubKey, txnouttype& typeRet, vector<vector<unsi
|
|||||||
// Template matching opcodes:
|
// Template matching opcodes:
|
||||||
if (opcode2 == OP_PUBKEYS)
|
if (opcode2 == OP_PUBKEYS)
|
||||||
{
|
{
|
||||||
while (vch1.size() >= 33 && vch1.size() <= 120)
|
while (vch1.size() >= 33 && vch1.size() <= 65)
|
||||||
{
|
{
|
||||||
vSolutionsRet.push_back(vch1);
|
vSolutionsRet.push_back(vch1);
|
||||||
if (!script1.GetOp(pc1, opcode1, vch1))
|
if (!script1.GetOp(pc1, opcode1, vch1))
|
||||||
@ -1275,7 +1275,7 @@ bool Solver(const CScript& scriptPubKey, txnouttype& typeRet, vector<vector<unsi
|
|||||||
|
|
||||||
if (opcode2 == OP_PUBKEY)
|
if (opcode2 == OP_PUBKEY)
|
||||||
{
|
{
|
||||||
if (vch1.size() < 33 || vch1.size() > 120)
|
if (vch1.size() < 33 || vch1.size() > 65)
|
||||||
break;
|
break;
|
||||||
vSolutionsRet.push_back(vch1);
|
vSolutionsRet.push_back(vch1);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user