Skip to content

Commit

Permalink
Update walletmodel.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
phoenixkonsole committed Mar 6, 2022
1 parent c1cbdd0 commit cddb001
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/qt/walletmodel.cpp
Expand Up @@ -65,7 +65,7 @@ bool WalletModel::isTestNetwork() const {
}

bool WalletModel::isColdStakingNetworkelyEnabled() const {
return sporkManager.IsSporkActive(SPORK_17_COLDSTAKING_ENFORCEMENT);
return sporkManager.IsSporkActive(SPORK_17_COLDSTAKING_ENFORCEMENT) && !sporkManager.IsSporkActive(SPORK_21_COLDSTAKING_REMOVAL);
}

bool WalletModel::isStakingStatusActive() const {
Expand Down Expand Up @@ -488,7 +488,7 @@ WalletModel::SendCoinsReturn WalletModel::sendCoins(WalletModelTransaction& tran
return AnonymizeOnlyUnlocked;
}

bool fColdStakingActive = sporkManager.IsSporkActive(SPORK_17_COLDSTAKING_ENFORCEMENT);
bool fColdStakingActive = sporkManager.IsSporkActive(SPORK_17_COLDSTAKING_ENFORCEMENT) && !sporkManager.IsSporkActive(SPORK_21_COLDSTAKING_REMOVAL);

// Double check tx before do anything
CValidationState state;
Expand Down

0 comments on commit cddb001

Please sign in to comment.