simplewallet: allow setting tx priority in watch wallets

Those can create unsigned transactions
This commit is contained in:
moneromooo-monero 2017-03-18 18:07:54 +00:00
parent c642d3224c
commit f9a2b5279d
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3

View file

@ -482,11 +482,6 @@ bool simple_wallet::set_default_mixin(const std::vector<std::string> &args/* = s
bool simple_wallet::set_default_priority(const std::vector<std::string> &args/* = std::vector<std::string>()*/)
{
int priority = 0;
if (m_wallet->watch_only())
{
fail_msg_writer() << tr("wallet is watch-only and cannot transfer");
return true;
}
try
{
if (strchr(args[1].c_str(), '-'))