From 37df97e873836e9bd10fe20da3bd1dabab48a53e Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Tue, 28 Jan 2025 14:22:19 +0100 Subject: [PATCH] CHIA-2219 Fix a plot ID calculation typo in test_unfinished_block_with_replaced_generator (#19139) Fix a plot ID calculation typo in test_unfinished_block_with_replaced_generator. --- chia/_tests/core/full_node/test_full_node.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/chia/_tests/core/full_node/test_full_node.py b/chia/_tests/core/full_node/test_full_node.py index 0a3deb278111..2ab729557358 100644 --- a/chia/_tests/core/full_node/test_full_node.py +++ b/chia/_tests/core/full_node/test_full_node.py @@ -63,7 +63,12 @@ from chia.types.blockchain_format.classgroup import ClassgroupElement from chia.types.blockchain_format.foliage import Foliage, FoliageTransactionBlock, TransactionsInfo from chia.types.blockchain_format.program import Program -from chia.types.blockchain_format.proof_of_space import ProofOfSpace, calculate_plot_id_pk, calculate_pos_challenge +from chia.types.blockchain_format.proof_of_space import ( + ProofOfSpace, + calculate_plot_id_ph, + calculate_plot_id_pk, + calculate_pos_challenge, +) from chia.types.blockchain_format.reward_chain_block import RewardChainBlockUnfinished from chia.types.blockchain_format.serialized_program import SerializedProgram from chia.types.blockchain_format.sized_bytes import bytes32 @@ -1466,7 +1471,8 @@ async def test_unfinished_block_with_replaced_generator(wallet_nodes, self_hostn if committment > 5: if pos.pool_public_key is None: - plot_id = calculate_plot_id_pk(pos.pool_contract_puzzle_hash, public_key) + assert pos.pool_contract_puzzle_hash is not None + plot_id = calculate_plot_id_ph(pos.pool_contract_puzzle_hash, public_key) else: plot_id = calculate_plot_id_pk(pos.pool_public_key, public_key) original_challenge_hash = block.reward_chain_block.pos_ss_cc_challenge_hash