Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
igroman787 committed Aug 17, 2022
1 parent 11e9bde commit fb3f906
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mytoncore.py
Original file line number Diff line number Diff line change
Expand Up @@ -1749,13 +1749,16 @@ def PoolUpdateValidatorSet(self, pool, wallet):
poolData["validatorSetChangesCount"] < 2 and
poolData["validatorSetChangeTime"] < config34["startWorkTime"]):
self.PoolProcessUpdateValidatorSet(poolAddr, wallet)
poolData = self.GetPoolData(poolAddr)
if (returnedStake > 0 and
poolData["state"] == 2 and
poolData["validatorSetChangesCount"] >= 2 and
timeNow - poolData["validatorSetChangeTime"] > poolData["stakeHeldFor"] + 60):
self.PoolRecoverStake(poolAddr)
poolData = self.GetPoolData(poolAddr)
if (poolData["state"] == 0 and self.HasPoolWithdrawRequests(pool)):
self.PoolWithdrawRequests(pool, wallet)
poolData = self.GetPoolData(poolAddr)
if (poolData["state"] == 0 and poolAddr in pendingWithdraws):
self.HandlePendingWithdraw(pendingWithdraws, poolAddr)
#end define
Expand Down

0 comments on commit fb3f906

Please sign in to comment.