Browse Source

Merge #5706: fix crash: RPC \

e5d9d77 fix crash: createmultisig and addmultisigaddress (fsb4000)
0.13
Wladimir J. van der Laan 10 years ago
parent
commit
a026a56c4e
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 2
      src/rpcmisc.cpp

2
src/rpcmisc.cpp

@ -228,6 +228,8 @@ CScript _createmultisig_redeemScript(const Array& params)
throw runtime_error( throw runtime_error(
strprintf("not enough keys supplied " strprintf("not enough keys supplied "
"(got %u keys, but need at least %d to redeem)", keys.size(), nRequired)); "(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; std::vector<CPubKey> pubkeys;
pubkeys.resize(keys.size()); pubkeys.resize(keys.size());
for (unsigned int i = 0; i < keys.size(); i++) for (unsigned int i = 0; i < keys.size(); i++)

Loading…
Cancel
Save