Skip to content

Commit

Permalink
[BUG][GUI] Don't return StakingOnlyUnlocked from WalletModel::sendCoins
Browse files Browse the repository at this point in the history
Github-Pull: #2104
Rebased-From: f79a00d
  • Loading branch information
random-zebra authored and Fuzzbawls committed Dec 27, 2020
1 parent f17aabc commit d95f0ca
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/qt/walletmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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<SendCoinsRecipient> recipients = transaction.getRecipients();
Expand Down

0 comments on commit d95f0ca

Please sign in to comment.