Skip to content

Commit 325d6e3

Browse files
committed
chore: fix some minor issues in comments
Signed-off-by: pingshuijie <[email protected]>
1 parent f5aa7bf commit 325d6e3

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

chia/_tests/core/full_node/test_full_node.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2626,7 +2626,7 @@ async def test_long_reorg(
26262626
# now reorg back to the original chain
26272627
# this exercises the case where we have some of the blocks in the DB already
26282628
node.full_node.blockchain.clean_block_records()
2629-
# when using add_block manualy we must warmup the cache
2629+
# when using add_block manually we must warmup the cache
26302630
await node.full_node.blockchain.warmup(uint32(fork_point - 100))
26312631
if light_blocks:
26322632
blocks = default_10000_blocks[fork_point - 100 : 3200]
@@ -2854,7 +2854,7 @@ def check_nodes_in_sync() -> bool:
28542854

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

28602860
# add a TX block, this will make spend_bundle valid in the next block

chia/_tests/core/mempool/test_mempool.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2278,7 +2278,7 @@ def test_duplicate_height_time_conditions(self, opcode: ConditionOpcode, softfor
22782278
def test_just_announcement(self, opcode: ConditionOpcode, softfork_height: uint32) -> None:
22792279
message = "a" * 1024
22802280
# announcements are validated on the Rust side and never returned
2281-
# back. They are either satisified or cause an immediate failure
2281+
# back. They are either satisfied or cause an immediate failure
22822282
npc_result = generator_condition_tester(f'({opcode.value[0]} "{message}") ' * 50, height=softfork_height)
22832283
assert npc_result.error is None
22842284
assert npc_result.conds is not None
@@ -2296,7 +2296,7 @@ def test_just_announcement(self, opcode: ConditionOpcode, softfork_height: uint3
22962296
def test_assert_announcement_fail(self, opcode: ConditionOpcode, softfork_height: uint32) -> None:
22972297
message = "a" * 1024
22982298
# announcements are validated on the Rust side and never returned
2299-
# back. They ar either satisified or cause an immediate failure
2299+
# back. They ar either satisfied or cause an immediate failure
23002300
# in this test we just assert announcements, we never make them, so
23012301
# these should fail
23022302
npc_result = generator_condition_tester(f'({opcode.value[0]} "{message}") ', height=softfork_height)

chia/_tests/core/util/test_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ def test_multiple_writers(self, root_path_populated_with_config, default_config_
263263
Test whether multiple readers/writers encounter data corruption. When using non-atomic operations
264264
to write to the config, partial/incomplete writes can cause readers to yield bad/corrupt data.
265265
"""
266-
# Artifically inflate the size of the default config. This is done to (hopefully) force
266+
# Artificially inflate the size of the default config. This is done to (hopefully) force
267267
# save_config() to require multiple writes. When save_config() was using shutil.move()
268268
# multiple writes were observed, leading to read failures when data was partially written.
269269
default_config_dict["xyz"] = "x" * 32768

chia/wallet/conditions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ def __post_init__(self) -> None:
427427
and self.coin_id_committed is None
428428
and self.mode_integer is None
429429
):
430-
raise ValueError("Must specify at least one committment. Anyone-can-send/recieve is not allowed.")
430+
raise ValueError("Must specify at least one commitment. Anyone-can-send/recieve is not allowed.")
431431
if self.coin_id_committed is not None:
432432
if self.parent_id_committed is None or self.puzzle_hash_committed is None or self.amount_committed is None:
433433
if not (
@@ -482,7 +482,7 @@ def convert_noneness_to_bit(maybe_none: Optional[Any]) -> int:
482482
@property
483483
def necessary_args(self) -> list[Program]:
484484
if self._nothing_committed:
485-
raise ValueError("Cannot generate necessary_args for a participant without committment information")
485+
raise ValueError("Cannot generate necessary_args for a participant without commitment information")
486486

487487
if self.coin_id_committed:
488488
return [Program.to(self.coin_id_committed)]

0 commit comments

Comments
 (0)