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();