Skip to content

Commit

Permalink
Fix a plot ID calculation typo in test_unfinished_block_with_replaced…
Browse files Browse the repository at this point in the history
…_generator.
  • Loading branch information
AmineKhaldi committed Jan 22, 2025
1 parent 115cba1 commit 8801fcd
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions chia/_tests/core/full_node/test_full_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -1476,7 +1481,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
Expand Down

0 comments on commit 8801fcd

Please sign in to comment.