From 32d9edee1a0b8eb1e9471331c848ffb96ff4fd4b Mon Sep 17 00:00:00 2001 From: Some Random Crypto Guy Date: Mon, 27 May 2024 12:06:06 +0100 Subject: [PATCH] disabled return_payment mechanism for alpha testing --- src/simplewallet/simplewallet.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp index efe589c..99b372d 100644 --- a/src/simplewallet/simplewallet.cpp +++ b/src/simplewallet/simplewallet.cpp @@ -7944,7 +7944,10 @@ bool simple_wallet::sweep_below(const std::vector &args_) bool simple_wallet::return_payment(const std::vector &args_) { // Disable until appropriate hard fork - CHECK_AND_ASSERT_MES(m_wallet->get_current_hard_fork() >= HF_VERSION_ENABLE_RETURN, false, tr("return_payments are disabled")); + if (m_wallet->get_current_hard_fork() < HF_VERSION_ENABLE_RETURN) { + fail_msg_writer() << tr("return_payments are disabled"); + return true; + } if (!try_connect_to_daemon()) return true;