Skip to content

Commit

Permalink
Timelord logging: Updated peak to hex from bytestring (#18467)
Browse files Browse the repository at this point in the history
* Timelord logging: Updated peak to hex from bytestring

* Use bytes.hex instead of unsupported .hex

* Use .hex the right way and remember Earle is almost always right
  • Loading branch information
hoffmang9 committed Aug 15, 2024
1 parent 126a8a2 commit bd022b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chia/timelord/timelord_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def set_state(self, state: Union[timelord_protocol.NewPeakTimelord, EndOfSubSlot
reward_challenge: Optional[bytes32] = self.get_challenge(Chain.REWARD_CHAIN)
assert reward_challenge is not None # Reward chain always has VDFs
self.reward_challenge_cache.append((reward_challenge, self.total_iters))
log.info(f"Updated timelord peak to {reward_challenge}, total iters: {self.total_iters}")
log.info(f"Updated timelord peak to {reward_challenge.hex()}, total iters: {self.total_iters}")
while len(self.reward_challenge_cache) > 2 * self.constants.MAX_SUB_SLOT_BLOCKS:
self.reward_challenge_cache.pop(0)

Expand Down

0 comments on commit bd022b0

Please sign in to comment.