File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -294,7 +294,6 @@ async def main() -> None:
294
294
logger .info ('Started operator service' )
295
295
with InterruptHandler () as interrupt_handler :
296
296
while not interrupt_handler .exit :
297
- await HarvestTask ().run ()
298
297
await ValidatorsTask (
299
298
keystores = keystores ,
300
299
remote_signer_config = remote_signer_config ,
@@ -304,6 +303,8 @@ async def main() -> None:
304
303
keystores = keystores ,
305
304
remote_signer_config = remote_signer_config ,
306
305
).run ()
306
+ if settings .harvest_vault :
307
+ await HarvestTask ().run ()
307
308
await MetricsTask ().run ()
308
309
await WalletTask ().run ()
309
310
Original file line number Diff line number Diff line change 13
13
class HarvestTask (BaseTask ):
14
14
async def process_block (self ) -> None :
15
15
"""Check vault state and send harvest transaction if needed."""
16
- if not settings .harvest_vault :
17
- return
18
-
19
16
if not await keeper_contract .can_harvest (settings .vault ):
20
17
return
21
18
You can’t perform that action at this time.
0 commit comments