simplewallet: disable donations on testnet

This commit is contained in:
Matt Smith 2017-12-20 17:12:22 +00:00
parent 7a9a4a6669
commit c765f9512c
1 changed files with 6 additions and 0 deletions

View File

@ -4494,6 +4494,12 @@ bool simple_wallet::sweep_below(const std::vector<std::string> &args_)
//----------------------------------------------------------------------------------------------------
bool simple_wallet::donate(const std::vector<std::string> &args_)
{
if(m_wallet->testnet())
{
fail_msg_writer() << tr("donations are not enabled on the testnet");
return true;
}
std::vector<std::string> local_args = args_;
if(local_args.empty() || local_args.size() > 5)
{