X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Frpcrawtransaction.cpp;h=a71871dff6171bbcfd14738d1a86db6a0297408d;hb=712ad72f8e002f95b49597824ec913eb95a0113f;hp=14b07057323062aa607e8f215079e98c7f97bd6a;hpb=53649164b90c865a4cb88efa4443a5dc552e7312;p=novacoin.git diff --git a/src/rpcrawtransaction.cpp b/src/rpcrawtransaction.cpp index 14b0705..a71871d 100644 --- a/src/rpcrawtransaction.cpp +++ b/src/rpcrawtransaction.cpp @@ -611,6 +611,8 @@ Value createmultisig(const Array& params, bool fHelp) throw runtime_error( strprintf("not enough keys supplied " "(got %" PRIszu " 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 pubkeys; pubkeys.resize(keys.size()); for (unsigned int i = 0; i < keys.size(); i++)