mirror of
https://github.com/oxen-io/oxen-core.git
synced 2023-12-14 02:22:56 +01:00
simplewallet: hide start_mining behind --trusted-daemon
because it leaks your standard address
This commit is contained in:
parent
0fdc75b054
commit
0f6d3aa9c7
1 changed files with 6 additions and 0 deletions
|
@ -985,6 +985,12 @@ bool simple_wallet::save_watch_only(const std::vector<std::string> &args/* = std
|
|||
//----------------------------------------------------------------------------------------------------
|
||||
bool simple_wallet::start_mining(const std::vector<std::string>& args)
|
||||
{
|
||||
if (!m_trusted_daemon)
|
||||
{
|
||||
fail_msg_writer() << tr("This command assume a trusted daemon. Enable with --trusted-daemon");
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!try_connect_to_daemon())
|
||||
return true;
|
||||
|
||||
|
|
Loading…
Reference in a new issue