From f79a00d20666a9af89cc0a975e75158cefdb0ecf Mon Sep 17 00:00:00 2001 From: random-zebra Date: Wed, 23 Dec 2020 21:22:00 +0100 Subject: [PATCH] [BUG][GUI] Don't return StakingOnlyUnlocked from WalletModel::sendCoins --- src/qt/walletmodel.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/qt/walletmodel.cpp b/src/qt/walletmodel.cpp index 70b6f013752f..8eb94ec08e3c 100644 --- a/src/qt/walletmodel.cpp +++ b/src/qt/walletmodel.cpp @@ -463,12 +463,6 @@ WalletModel::SendCoinsReturn WalletModel::prepareTransaction(WalletModelTransact WalletModel::SendCoinsReturn WalletModel::sendCoins(WalletModelTransaction& transaction) { - QByteArray transaction_array; /* store serialized transaction */ - - if (isStakingOnlyUnlocked()) { - return StakingOnlyUnlocked; - } - bool fColdStakingActive = isColdStakingNetworkelyEnabled(); bool fSaplingActive = Params().GetConsensus().NetworkUpgradeActive(cachedNumBlocks, Consensus::UPGRADE_V5_0); @@ -479,6 +473,8 @@ WalletModel::SendCoinsReturn WalletModel::sendCoins(WalletModelTransaction& tran return TransactionCheckFailed; } + QByteArray transaction_array; /* store serialized transaction */ + { LOCK2(cs_main, wallet->cs_wallet); QList recipients = transaction.getRecipients();