Skip to content

Commit 8375ed0

Browse files
committed
fix check_zero_blocks_created
1 parent 101dd9c commit 8375ed0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

modules/alert_bot.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,9 @@ def check_zero_blocks_created(self):
190190
ts = get_timestamp()
191191
period = VALIDATION_PERIOD // 3 # 6h for mainnet, 40m for testnet
192192
start, end = ts - period, ts - 60
193+
config34 = self.ton.GetConfig34()
194+
if start < config34.startWorkTime: # round started recently
195+
return
193196
validators = self.ton.GetValidatorsList(start=start, end=end)
194197
validator = self.validator_module.find_myself(validators)
195198
if validator is None or validator.blocks_created > 0:

0 commit comments

Comments
 (0)