aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfsb4000 <fsb4000@yandex.ru>2015-01-25 18:11:57 +0600
committerWladimir J. van der Laan <laanwj@gmail.com>2015-02-20 09:53:44 +0100
commit7f502be2598af1cbe5b04776985e0da9bcaebe21 (patch)
treedeedfaffe15e8a0b55f6372bc9ef99f852634054 /src
parent047a89831760ff124740fe9f58411d57ee087078 (diff)
fix crash: createmultisig and addmultisigaddress
Rebased-From: e5d9d77df2de715d24638e3bab78750b7ad3e1fd Github-Pull: #5706
Diffstat (limited to 'src')
-rw-r--r--src/rpcmisc.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rpcmisc.cpp b/src/rpcmisc.cpp
index 90b9c99caa..5842f6a2da 100644
--- a/src/rpcmisc.cpp
+++ b/src/rpcmisc.cpp
@@ -213,6 +213,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++)