mirror of
https://github.com/monero-project/monero.git
synced 2025-01-06 09:52:04 +02:00
Merge pull request #2976
c765f951
simplewallet: disable donations on testnet (Matt Smith)
This commit is contained in:
commit
bfe580787d
@ -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_)
|
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_;
|
std::vector<std::string> local_args = args_;
|
||||||
if(local_args.empty() || local_args.size() > 5)
|
if(local_args.empty() || local_args.size() > 5)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user