Skip to content

chore: fix some minor issues in comments #19856

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions chia/_tests/core/full_node/test_full_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -2626,7 +2626,7 @@ async def test_long_reorg(
# now reorg back to the original chain
# this exercises the case where we have some of the blocks in the DB already
node.full_node.blockchain.clean_block_records()
# when using add_block manualy we must warmup the cache
# when using add_block manually we must warmup the cache
await node.full_node.blockchain.warmup(uint32(fork_point - 100))
if light_blocks:
blocks = default_10000_blocks[fork_point - 100 : 3200]
Expand Down Expand Up @@ -2854,7 +2854,7 @@ def check_nodes_in_sync() -> bool:

# now continue building the chain on top of B
# since spend_bundle was supposed to have been reorged-out, we should be
# able to include it in another block, howerver, since we replaced a TX
# able to include it in another block, however, since we replaced a TX
# block with a non-TX block, it won't be available immediately at height 11

# add a TX block, this will make spend_bundle valid in the next block
Expand Down
4 changes: 2 additions & 2 deletions chia/_tests/core/mempool/test_mempool.py
Original file line number Diff line number Diff line change
Expand Up @@ -2278,7 +2278,7 @@ def test_duplicate_height_time_conditions(self, opcode: ConditionOpcode, softfor
def test_just_announcement(self, opcode: ConditionOpcode, softfork_height: uint32) -> None:
message = "a" * 1024
# announcements are validated on the Rust side and never returned
# back. They are either satisified or cause an immediate failure
# back. They are either satisfied or cause an immediate failure
npc_result = generator_condition_tester(f'({opcode.value[0]} "{message}") ' * 50, height=softfork_height)
assert npc_result.error is None
assert npc_result.conds is not None
Expand All @@ -2296,7 +2296,7 @@ def test_just_announcement(self, opcode: ConditionOpcode, softfork_height: uint3
def test_assert_announcement_fail(self, opcode: ConditionOpcode, softfork_height: uint32) -> None:
message = "a" * 1024
# announcements are validated on the Rust side and never returned
# back. They ar either satisified or cause an immediate failure
# back. They ar either satisfied or cause an immediate failure
# in this test we just assert announcements, we never make them, so
# these should fail
npc_result = generator_condition_tester(f'({opcode.value[0]} "{message}") ', height=softfork_height)
Expand Down
2 changes: 1 addition & 1 deletion chia/_tests/core/util/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ def test_multiple_writers(self, root_path_populated_with_config, default_config_
Test whether multiple readers/writers encounter data corruption. When using non-atomic operations
to write to the config, partial/incomplete writes can cause readers to yield bad/corrupt data.
"""
# Artifically inflate the size of the default config. This is done to (hopefully) force
# Artificially inflate the size of the default config. This is done to (hopefully) force
# save_config() to require multiple writes. When save_config() was using shutil.move()
# multiple writes were observed, leading to read failures when data was partially written.
default_config_dict["xyz"] = "x" * 32768
Expand Down
4 changes: 2 additions & 2 deletions chia/wallet/conditions.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ def __post_init__(self) -> None:
and self.coin_id_committed is None
and self.mode_integer is None
):
raise ValueError("Must specify at least one committment. Anyone-can-send/recieve is not allowed.")
raise ValueError("Must specify at least one commitment. Anyone-can-send/recieve is not allowed.")
if self.coin_id_committed is not None:
if self.parent_id_committed is None or self.puzzle_hash_committed is None or self.amount_committed is None:
if not (
Expand Down Expand Up @@ -482,7 +482,7 @@ def convert_noneness_to_bit(maybe_none: Optional[Any]) -> int:
@property
def necessary_args(self) -> list[Program]:
if self._nothing_committed:
raise ValueError("Cannot generate necessary_args for a participant without committment information")
raise ValueError("Cannot generate necessary_args for a participant without commitment information")

if self.coin_id_committed:
return [Program.to(self.coin_id_committed)]
Expand Down
Loading