Skip to content

Commit f734c44

Browse files
committed
fix rename
1 parent 6159d8d commit f734c44

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

chia/_tests/solver/test_solver_service.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ async def test_solver_api_methods(blockchain_constants: ConsensusConstants, tmp_
2323
solver = solver_service._node
2424
solver_api = solver_service._api
2525
assert solver_api.ready() is True
26-
test_info = SolverInfo(plot_difficulty=uint64(1500), partial_proof=b"test_partial_proof_42")
26+
test_info = SolverInfo(plot_strength=uint64(1500), partial_proof=b"test_partial_proof_42")
2727
expected_proof = b"test_proof_data_12345"
2828
with patch.object(solver, "solve", return_value=expected_proof):
2929
api_result = await solver_api.solve(test_info)
@@ -49,7 +49,7 @@ async def test_solver_error_handling(
4949
pass # expected
5050
# test solver handles exception in solve method
5151
solver = solver_service._node
52-
test_info = SolverInfo(plot_difficulty=uint64(1000), partial_proof=b"test_partial_proof_zeros")
52+
test_info = SolverInfo(plot_strength=uint64(1000), partial_proof=b"test_partial_proof_zeros")
5353
with patch.object(solver, "solve", side_effect=RuntimeError("test error")):
5454
# solver api should handle exceptions gracefully
5555
result = await solver_service._api.solve(test_info)

chia/farmer/farmer_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ async def partial_proofs(self, partial_proof_data: PartialProofsData, peer: WSCh
506506
# Process each quality chain through solver service to get full proofs
507507
for partial_proof in partial_proof_data.partial_proofs:
508508
solver_info = SolverInfo(
509-
plot_difficulty=partial_proof_data.difficulty,
509+
plot_strength=partial_proof_data.difficulty,
510510
partial_proof=partial_proof,
511511
)
512512

chia/solver/solver_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ async def solve(
4040
self.log.error("Solver is not started")
4141
return None
4242

43-
self.log.debug(f"Solving quality {request.partial_proof.hex()}with difficulty {request.plot_difficulty}")
43+
self.log.debug(f"Solving quality {request.partial_proof.hex()}with difficulty {request.plot_strength}")
4444

4545
try:
4646
proof = self.solver.solve(request)

chia/solver/solver_rpc_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ async def _state_changed(self, change: str, change_data: Optional[dict[str, Any]
3232
async def solve(self, request: dict[str, Any]) -> EndpointResult:
3333
# extract all required fields from request
3434
partial_proof = request["partial_proof"]
35-
plot_difficulty = request.get("plot_difficulty", 1000) # todo default ?
35+
plot_strength = request.get("plot_difficulty", 1000) # todo default ?
3636

3737
# create complete SolverInfo object with all provided data
3838
solver_info = SolverInfo(
39-
plot_difficulty=uint64(plot_difficulty),
39+
plot_strength == uint64(plot_strength),
4040
partial_proof=bytes.fromhex(partial_proof),
4141
)
4242

0 commit comments

Comments
 (0)