Skip to content

Commit a159bab

Browse files
committed
fix first sub epoch
1 parent 56f8905 commit a159bab

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

chia/consensus/make_sub_epoch_summary.py

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -49,26 +49,13 @@ def make_sub_epoch_summary(
4949
# This is not technically because more blocks can potentially be included than 2*MAX_SUB_SLOT_BLOCKS,
5050
# But assuming less than 128 overflow blocks get infused in the first 2 slots, it's not an issue
5151
if (blocks_included_height + constants.MAX_SUB_SLOT_BLOCKS) // constants.SUB_EPOCH_BLOCKS <= 1:
52-
prev_block = blocks.height_to_block_record(blocks_included_height)
53-
prev_tx_block = pre_sp_tx_block_height(
54-
constants=constants,
55-
blocks=blocks,
56-
prev_b_hash=prev_block.prev_hash,
57-
sp_index=sp_index,
58-
first_in_sub_slot=True,
59-
)
60-
challenge_root = (
61-
compute_challenge_merkle_root(constants, blocks, blocks_included_height)
62-
if prev_tx_block >= constants.HARD_FORK2_HEIGHT
63-
else None
64-
)
6552
return SubEpochSummary(
6653
constants.GENESIS_CHALLENGE,
6754
constants.GENESIS_CHALLENGE,
6855
uint8(0),
6956
None,
7057
None,
71-
challenge_root,
58+
None, # No challenge root in first sub-epoch
7259
)
7360
if prev_ses_block is None:
7461
curr: BlockRecord = prev_prev_block

0 commit comments

Comments
 (0)