simplewallet: allow a different password for the watch-only wallet

This commit is contained in:
moneromooo-monero 2015-06-12 16:45:29 +01:00
parent c882af63c1
commit fb2007181e
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
3 changed files with 14 additions and 8 deletions

View file

@ -81,14 +81,15 @@ namespace tools
m_empty = true;
}
bool password_container::read_password()
bool password_container::read_password(const char *message)
{
clear();
bool r;
if (is_cin_tty())
{
std::cout << "password: ";
if (message)
std::cout << message << ": ";
r = read_from_tty();
}
else