mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-24 05:24:34 +00:00
commit
5b8def797c
@ -999,10 +999,12 @@ Value addmultisigaddress(const Array& params, bool fHelp)
|
|||||||
strAccount = AccountFromValue(params[2]);
|
strAccount = AccountFromValue(params[2]);
|
||||||
|
|
||||||
// Gather public keys
|
// Gather public keys
|
||||||
if ((nRequired < 1) || ((int)keys.size() < nRequired))
|
if (nRequired < 1)
|
||||||
|
throw runtime_error("a multisignature address must require at least one key to redeem");
|
||||||
|
if ((int)keys.size() < nRequired)
|
||||||
throw runtime_error(
|
throw runtime_error(
|
||||||
strprintf("wrong number of keys"
|
strprintf("not enough keys supplied "
|
||||||
"(got %d, need at least %d)", keys.size(), nRequired));
|
"(got %d keys, but need at least %d to redeem)", keys.size(), nRequired));
|
||||||
std::vector<CKey> pubkeys;
|
std::vector<CKey> 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…
x
Reference in New Issue
Block a user