Merge pull request #2976

c765f951 simplewallet: disable donations on testnet (Matt Smith)
This commit is contained in:
Riccardo Spagni 2018-01-10 11:49:14 +01:00
commit bfe580787d
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD

View file

@ -4528,6 +4528,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)
{