92
92
from chia_rs .sized_ints import uint128
93
93
94
94
from chia ._tests .environments .wallet import WalletEnvironment , WalletState , WalletTestFramework
95
- from chia ._tests .util .setup_nodes import setup_farmer_solver_multi_harvester
95
+ from chia ._tests .util .setup_nodes import setup_farmer_multi_harvester
96
96
from chia .full_node .full_node_rpc_client import FullNodeRpcClient
97
97
from chia .simulator .block_tools import BlockTools , create_block_tools_async , test_constants
98
98
from chia .simulator .keyring import TempKeyring
@@ -866,7 +866,7 @@ async def farmer_one_harvester_simulator_wallet(
866
866
]
867
867
]:
868
868
async with setup_simulators_and_wallets_service (1 , 1 , blockchain_constants ) as (nodes , wallets , bt ):
869
- async with setup_farmer_solver_multi_harvester (bt , 1 , tmp_path , bt .constants , start_services = True ) as (
869
+ async with setup_farmer_multi_harvester (bt , 1 , tmp_path , bt .constants , start_services = True ) as (
870
870
harvester_services ,
871
871
farmer_service ,
872
872
_ ,
@@ -879,7 +879,7 @@ async def farmer_one_harvester_simulator_wallet(
879
879
880
880
@pytest .fixture (scope = "function" )
881
881
async def farmer_one_harvester (tmp_path : Path , get_b_tools : BlockTools ) -> AsyncIterator [FarmerOneHarvester ]:
882
- async with setup_farmer_solver_multi_harvester (
882
+ async with setup_farmer_multi_harvester (
883
883
get_b_tools , 1 , tmp_path , get_b_tools .constants , start_services = True
884
884
) as _ :
885
885
yield _
@@ -894,7 +894,7 @@ async def farmer_one_harvester_solver(
894
894
) -> AsyncIterator [FarmerOneHarvesterSolver ]:
895
895
async with setup_solver (tmp_path / "solver" , get_b_tools , get_b_tools .constants ) as solver_service :
896
896
solver_peer = UnresolvedPeerInfo (get_b_tools .config ["self_hostname" ], solver_service ._server .get_port ())
897
- async with setup_farmer_solver_multi_harvester (
897
+ async with setup_farmer_multi_harvester (
898
898
get_b_tools , 1 , tmp_path , get_b_tools .constants , start_services = True , solver_peer = solver_peer
899
899
) as (harvester_services , farmer_service , bt ):
900
900
yield harvester_services , farmer_service , solver_service , bt
@@ -904,7 +904,7 @@ async def farmer_one_harvester_solver(
904
904
async def farmer_one_harvester_not_started (
905
905
tmp_path : Path , get_b_tools : BlockTools
906
906
) -> AsyncIterator [tuple [list [HarvesterService ], FarmerService , BlockTools ]]:
907
- async with setup_farmer_solver_multi_harvester (
907
+ async with setup_farmer_multi_harvester (
908
908
get_b_tools , 1 , tmp_path , get_b_tools .constants , start_services = False
909
909
) as _ :
910
910
yield _
@@ -914,7 +914,7 @@ async def farmer_one_harvester_not_started(
914
914
async def farmer_two_harvester_not_started (
915
915
tmp_path : Path , get_b_tools : BlockTools
916
916
) -> AsyncIterator [tuple [list [HarvesterService ], FarmerService , BlockTools ]]:
917
- async with setup_farmer_solver_multi_harvester (
917
+ async with setup_farmer_multi_harvester (
918
918
get_b_tools , 2 , tmp_path , get_b_tools .constants , start_services = False
919
919
) as _ :
920
920
yield _
@@ -924,7 +924,7 @@ async def farmer_two_harvester_not_started(
924
924
async def farmer_three_harvester_not_started (
925
925
tmp_path : Path , get_b_tools : BlockTools
926
926
) -> AsyncIterator [tuple [list [HarvesterService ], FarmerService , BlockTools ]]:
927
- async with setup_farmer_solver_multi_harvester (
927
+ async with setup_farmer_multi_harvester (
928
928
get_b_tools , 3 , tmp_path , get_b_tools .constants , start_services = False
929
929
) as _ :
930
930
yield _
@@ -1309,7 +1309,7 @@ async def farmer_harvester_2_simulators_zero_bits_plot_filter(
1309
1309
]
1310
1310
1311
1311
[harvester_service ], farmer_service , _ = await async_exit_stack .enter_async_context (
1312
- setup_farmer_solver_multi_harvester (bt , 1 , tmp_path , bt .constants , start_services = True )
1312
+ setup_farmer_multi_harvester (bt , 1 , tmp_path , bt .constants , start_services = True )
1313
1313
)
1314
1314
1315
1315
yield farmer_service , harvester_service , simulators [0 ], simulators [1 ], bt
0 commit comments