diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp index c4d0acb7a..eb0bce7ae 100644 --- a/src/simplewallet/simplewallet.cpp +++ b/src/simplewallet/simplewallet.cpp @@ -224,6 +224,11 @@ bool simple_wallet::seed(const std::vector &args/* = std::vectorwatch_only()) + { + fail_msg_writer() << "This wallet is watch-only and cannot have a seed."; + return true; + } if (m_wallet->is_deterministic()) { if (m_wallet->get_seed_language().empty()) @@ -249,6 +254,11 @@ bool simple_wallet::seed(const std::vector &args/* = std::vector &args/* = std::vector()*/) { bool success = false; + if (m_wallet->watch_only()) + { + fail_msg_writer() << "This wallet is watch-only and doesn't have a seed."; + return true; + } if (!m_wallet->is_deterministic()) { fail_msg_writer() << "This wallet is non-deterministic and doesn't have a seed.";