mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-12-23 13:47:47 +00:00
Merge pull request #2976
c765f951
simplewallet: disable donations on testnet (Matt Smith)
This commit is contained in:
commit
bfe580787d
1 changed files with 6 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue