Skip to content

Commit 0624e51

Browse files
committed
Fix typos: accidentally (ruff.toml), partial (solver_api.py)
Made-with: Cursor
1 parent ded4182 commit 0624e51

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

chia/solver/solver_api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ async def solve(
3636
) -> Message | None:
3737
"""
3838
Solve a V2 plot partial proof to get the full proof of space.
39-
This is called by the farmer when it receives V2 parital proofs from harvester.
39+
This is called by the farmer when it receives V2 partial proofs from harvester.
4040
"""
4141
if not self.solver.started:
4242
self.log.error("Solver is not started")
@@ -47,7 +47,7 @@ async def solve(
4747
try:
4848
proof = self.solver.solve(request.partial_proof, request.plot_id, request.strength, request.size)
4949
if proof is None:
50-
self.log.warning(f"Solver returned no proof for parital {request.partial_proof.fragments[:5]}")
50+
self.log.warning(f"Solver returned no proof for partial {request.partial_proof.fragments[:5]}")
5151
return None
5252

5353
self.log.debug(f"Successfully solved partial proof, returning {len(proof)} byte proof")
@@ -57,5 +57,5 @@ async def solve(
5757
)
5858

5959
except Exception as e:
60-
self.log.error(f"Error solving parital {request.partial_proof.fragments[:5]}: {e}")
60+
self.log.error(f"Error solving partial {request.partial_proof.fragments[:5]}: {e}")
6161
return None

ruff.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ ignore = [
4646
# Ruff Specific
4747

4848
# This code is problematic because using instantiated types as defaults is so common across the codebase.
49-
# Its purpose is to prevent accidenatally assigning mutable defaults. However, this is a bit overkill for that.
49+
# Its purpose is to prevent accidentally assigning mutable defaults. However, this is a bit overkill for that.
5050
# That being said, it would be nice to add some way to actually guard against that specific mutable default behavior.
5151
"RUF009", # function-call-in-dataclass-default-argument
5252
"RUF056", # falsy-dict-get-fallback

0 commit comments

Comments
 (0)