simplewallet: disable donations on testnet

pull/95/head
Matt Smith 7 years ago
parent 7a9a4a6669
commit c765f9512c

@ -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)
{

Loading…
Cancel
Save