From 4a16c730b01e95682ea7d5c6826db3c9c538ed89 Mon Sep 17 00:00:00 2001 From: Kamil Koczurek Date: Fri, 12 Jan 2024 13:43:10 +0100 Subject: [PATCH] probe: payment init recv in ProviderProbe (#663) --- goth/runner/probe/__init__.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/goth/runner/probe/__init__.py b/goth/runner/probe/__init__.py index 44a4e143..d5548dbf 100644 --- a/goth/runner/probe/__init__.py +++ b/goth/runner/probe/__init__.py @@ -498,6 +498,13 @@ class ProviderProbe(MarketApiMixin, PaymentApiMixin, Probe): """The agent component running `ya-provider` for this probe. This field is added for convenience to make getting this agent instance easier.""" + async def _start_container(self) -> None: + await super()._start_container() + + payment_driver = self.payment_config.driver + self.cli.payment_fund(payment_driver) + self.cli.payment_init(payment_driver, receiver_mode=True) + def __init__( self, runner: "Runner",