Skip to content

Commit 467d50d

Browse files
committed
review comments
1 parent 6938918 commit 467d50d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

chia/consensus/blockchain.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -270,17 +270,17 @@ async def run_single_block(self, block: FullBlock, fork_info: ForkInfo) -> None:
270270
additions: list[tuple[Coin, Optional[bytes]]] = []
271271
removals: list[tuple[bytes32, Coin]] = []
272272
if block.transactions_generator is not None:
273+
block_generator: Optional[BlockGenerator] = await get_block_generator(self.lookup_block_generators, block)
274+
assert block_generator is not None
275+
assert block.transactions_info is not None
276+
assert block.foliage_transaction_block is not None
273277
prev_tx_height = pre_sp_tx_block_height(
274278
constants=self.constants,
275279
blocks=self,
276280
prev_b_hash=block.prev_header_hash,
277281
sp_index=block.reward_chain_block.signage_point_index,
278282
first_in_sub_slot=len(block.finished_sub_slots) > 0,
279283
)
280-
block_generator: Optional[BlockGenerator] = await get_block_generator(self.lookup_block_generators, block)
281-
assert block_generator is not None
282-
assert block.transactions_info is not None
283-
assert block.foliage_transaction_block is not None
284284
flags = get_flags_for_height_and_constants(prev_tx_height, self.constants)
285285
additions, removals = additions_and_removals(
286286
bytes(block.transactions_generator),

0 commit comments

Comments
 (0)