Skip to content

Commit

Permalink
Restore guard on CalculateOwnerRewards
Browse files Browse the repository at this point in the history
  • Loading branch information
Bushstar committed Jun 23, 2022
1 parent 5144a17 commit b604a01
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/masternodes/mn_checks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1565,7 +1565,9 @@ class CCustomTxApplyVisitor : public CCustomTxVisitor
CDataStructureV0 liveKey{AttributeTypes::Live, ParamIDs::Economy, economyKey};
auto balances = attributes->GetValue(liveKey, CBalances{});

CalculateOwnerRewards(obj.owner);
if (height >= static_cast<uint32_t>(consensus.FortCanningCrunchHeight)) {
CalculateOwnerRewards(obj.owner);
}

if (obj.withdraw) {

Expand Down

0 comments on commit b604a01

Please sign in to comment.