File tree Expand file tree Collapse file tree 1 file changed +1
-14
lines changed
Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments