Skip to content

Commit

Permalink
fix another case of missing args and format
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-o-how committed Jan 28, 2025
1 parent 1835987 commit 7b77d75
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 3 additions & 1 deletion chia/_tests/core/consensus/test_pot_iterations.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ def test_calculate_ip_iters(self):

with raises(ValueError):
# Invalid signage point index
calculate_ip_iters(test_constants.NUM_SPS_SUB_SLOT, test_constants.NUM_SP_INTERVALS_EXTRA, ssi, uint8(123), uint64(100000))
calculate_ip_iters(
test_constants.NUM_SPS_SUB_SLOT, test_constants.NUM_SP_INTERVALS_EXTRA, ssi, uint8(123), uint64(100000)
)

sp_iters = sp_interval_iters * 13

Expand Down
6 changes: 5 additions & 1 deletion chia/consensus/block_header_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -989,7 +989,11 @@ def validate_finished_header_block(

# 31. Check infused challenge chain infusion point VDF
if not genesis_block:
overflow = is_overflow_block(constants, header_block.reward_chain_block.signage_point_index)
overflow = is_overflow_block(
constants.NUM_SPS_SUB_SLOT,
constants.NUM_SP_INTERVALS_EXTRA,
header_block.reward_chain_block.signage_point_index,
)
deficit = calculate_deficit(
constants,
header_block.height,
Expand Down

0 comments on commit 7b77d75

Please sign in to comment.