Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CHIA-2219 Fix a plot ID calculation typo in test_unfinished_block_with_replaced_generator #19139

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading