Open nieznanysprawiciel opened 10 months ago
Problem exists on both drivers.
Reproduction:
Result:
ya_payment.exceptions.ApiException: (500) Reason: Internal Server Error HTTP response headers: <CIMultiDictProxy('content-length': '76', 'content-type': 'application/json', 'vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers', 'date': 'Tue, 21 Nov 2023 13:59:29 GMT')> HTTP response body: {"message":"Account not active: 0x8f8c7eb38013f57acf44fd36fcb2847810166b2a"}
Driver initializes list of active accounts only once on yagna start: https://github.com/golemfactory/yagna/blob/9fd8d064a40781804f57d7a9c5dad5dc3df0cb90/core/payment-driver/erc20next/src/driver.rs#L45
Yagna daemon needs to be restarted for new account to be visible.
Acceptance criteria:
for old driver it was fixed in 2816
Problem exists on both drivers.
Reproduction:
Result:
Driver initializes list of active accounts only once on yagna start: https://github.com/golemfactory/yagna/blob/9fd8d064a40781804f57d7a9c5dad5dc3df0cb90/core/payment-driver/erc20next/src/driver.rs#L45
Yagna daemon needs to be restarted for new account to be visible.
Acceptance criteria: