mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
simplewallet: double check a new multisig wallet is multisig
Coverity 182493
This commit is contained in:
parent
9b98a6ac8f
commit
8cea8d0cef
1 changed files with 5 additions and 1 deletions
|
@ -816,7 +816,11 @@ bool simple_wallet::make_multisig(const std::vector<std::string> &args)
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t total;
|
uint32_t total;
|
||||||
m_wallet->multisig(NULL, &threshold, &total);
|
if (!m_wallet->multisig(NULL, &threshold, &total))
|
||||||
|
{
|
||||||
|
fail_msg_writer() << tr("Error creating multisig: new wallet is not multisig");
|
||||||
|
return true;
|
||||||
|
}
|
||||||
success_msg_writer() << std::to_string(threshold) << "/" << total << tr(" multisig address: ")
|
success_msg_writer() << std::to_string(threshold) << "/" << total << tr(" multisig address: ")
|
||||||
<< m_wallet->get_account().get_public_address_str(m_wallet->testnet());
|
<< m_wallet->get_account().get_public_address_str(m_wallet->testnet());
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue