fix crash: createmultisig and addmultisigaddress
This commit is contained in:
parent
40e96a3016
commit
e5d9d77df2
1 changed files with 2 additions and 0 deletions
|
@ -216,6 +216,8 @@ CScript _createmultisig_redeemScript(const Array& params)
|
|||
throw runtime_error(
|
||||
strprintf("not enough keys supplied "
|
||||
"(got %u keys, but need at least %d to redeem)", keys.size(), nRequired));
|
||||
if (keys.size() > 16)
|
||||
throw runtime_error("Number of addresses involved in the multisignature address creation > 16\nReduce the number");
|
||||
std::vector<CPubKey> pubkeys;
|
||||
pubkeys.resize(keys.size());
|
||||
for (unsigned int i = 0; i < keys.size(); i++)
|
||||
|
|
Loading…
Reference in a new issue