Skip to content

Commit

Permalink
Merge bitcoin#5706: fix crash: RPC \
Browse files Browse the repository at this point in the history
e5d9d77 fix crash: createmultisig and addmultisigaddress (fsb4000)
  • Loading branch information
laanwj committed Feb 20, 2015
2 parents 07f4386 + e5d9d77 commit a026a56
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/rpcmisc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,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++)
Expand Down

0 comments on commit a026a56

Please sign in to comment.