mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-23 19:33:28 +01:00
simplewallet: disable donations on testnet
This commit is contained in:
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_)
|
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