Skip to content

Commit

Permalink
Fix timelord bug (Chia-Network#6761)
Browse files Browse the repository at this point in the history
* Fix timelord bug

* Fix lint

* Another lint fix
  • Loading branch information
mariano54 authored Jun 15, 2021
1 parent 0dbb6eb commit 79bc40f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions chia/timelord/timelord.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,9 @@ def _can_infuse_unfinished_block(self, block: timelord_protocol.NewUnfinishedBlo
if found_index == -1:
log.warning(f"Will not infuse {block.rc_prev} because its reward chain challenge is not in the chain")
return None
if ip_iters > block_ip_iters:
log.warning("Too late to infuse block")
return None

new_block_iters = uint64(block_ip_iters - ip_iters)
if len(self.last_state.reward_challenge_cache) > found_index + 1:
Expand Down

0 comments on commit 79bc40f

Please sign in to comment.