From 7f0eda828adda31eed49608d4b40e41fb007c7d1 Mon Sep 17 00:00:00 2001 From: Some Random Crypto Guy Date: Thu, 3 Oct 2024 13:20:25 +0100 Subject: [PATCH] disabled staking on multisig wallets --- src/simplewallet/simplewallet.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp index fa3eb61..ca06e36 100644 --- a/src/simplewallet/simplewallet.cpp +++ b/src/simplewallet/simplewallet.cpp @@ -8306,6 +8306,12 @@ bool simple_wallet::stake(const std::vector &args_) return true; } + if(m_wallet->multisig()) + { + fail_msg_writer() << tr("This is a multisig wallet, staking is not currently supported"); + return true; + } + std::vector local_args; local_args.push_back(m_wallet->get_subaddress_as_str({m_current_subaddress_account,0})); local_args.insert(local_args.end(), args_.begin(), args_.end());