diff options
author | fsb4000 <fsb4000@yandex.ru> | 2015-01-25 18:11:57 +0600 |
---|---|---|
committer | fsb4000 <fsb4000@yandex.ru> | 2015-01-25 18:11:57 +0600 |
commit | e5d9d77df2de715d24638e3bab78750b7ad3e1fd (patch) | |
tree | 5454f871108c5185d0fcfcca17afcf7a9212f931 /src/rpcmisc.cpp | |
parent | 40e96a30160ddc2cb39bc9b86ec103ac892e09ab (diff) |
fix crash: createmultisig and addmultisigaddress
Diffstat (limited to 'src/rpcmisc.cpp')
-rw-r--r-- | src/rpcmisc.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rpcmisc.cpp b/src/rpcmisc.cpp index 184aacf5a8..c54b92cc96 100644 --- a/src/rpcmisc.cpp +++ b/src/rpcmisc.cpp @@ -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++) |