diff options
author | Matt Smith <matty@posteo.net> | 2017-12-20 17:12:22 +0000 |
---|---|---|
committer | Matt Smith <matty@posteo.net> | 2017-12-20 17:12:22 +0000 |
commit | c765f9512c3dd056abe2d2fc36db237577f26aa0 (patch) | |
tree | 18ebc85aaaa8296734aaea892fcbb56fdd4d4fb4 /src/simplewallet/simplewallet.cpp | |
parent | Merge pull request #2961 (diff) | |
download | monero-c765f9512c3dd056abe2d2fc36db237577f26aa0.tar.xz |
simplewallet: disable donations on testnet
Diffstat (limited to 'src/simplewallet/simplewallet.cpp')
-rw-r--r-- | src/simplewallet/simplewallet.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp index 64e665fb3..6116c71de 100644 --- a/src/simplewallet/simplewallet.cpp +++ b/src/simplewallet/simplewallet.cpp @@ -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_) { + 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) { |