fix#864 fix using boolean
This commit is contained in:
commit
c7920e1cf8
|
@ -60,6 +60,14 @@ namespace tools
|
|||
|
||||
}
|
||||
|
||||
password_container::password_container(std::string&& password)
|
||||
: m_empty(false)
|
||||
, m_password(std::move(password))
|
||||
, m_verify(false)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
password_container::password_container(password_container&& rhs)
|
||||
: m_empty(std::move(rhs.m_empty))
|
||||
|
|
|
@ -41,6 +41,7 @@ namespace tools
|
|||
static const size_t max_password_size = 1024;
|
||||
password_container(bool verify);
|
||||
password_container(password_container&& rhs);
|
||||
password_container(std::string&& password);
|
||||
~password_container();
|
||||
|
||||
void clear();
|
||||
|
|
|
@ -468,6 +468,7 @@ bool simple_wallet::set_default_mixin(const std::vector<std::string> &args/* = s
|
|||
verify=true;
|
||||
|
||||
tools::password_container pwd_container(verify);
|
||||
|
||||
success = pwd_container.read_password();
|
||||
if (!success)
|
||||
{
|
||||
|
@ -1564,6 +1565,7 @@ bool simple_wallet::new_wallet(const std::string &wallet_file, const std::string
|
|||
return false;
|
||||
}
|
||||
|
||||
|
||||
m_wallet_file=wallet_file;
|
||||
|
||||
m_wallet.reset(new tools::wallet2(testnet));
|
||||
|
|
Loading…
Reference in New Issue