mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-12-23 17:28:52 +00: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