From 340921194392ac72cc21f88cc4fe2e6b689b147f Mon Sep 17 00:00:00 2001 From: tryiou <73646876+tryiou@users.noreply.github.com> Date: Wed, 18 Dec 2024 15:59:37 +0100 Subject: [PATCH] Update plugin-adapter.py change send_batch to send_message on gethistory call --- plugin-adapter.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugin-adapter.py b/plugin-adapter.py index 19f6e3d..712122b 100755 --- a/plugin-adapter.py +++ b/plugin-adapter.py @@ -636,8 +636,9 @@ async def gethistory(params): return None socket = coins[currency]['socket'] - - res = await socket.send_batch("gethistory", addresses, timeout=60) + + res = await socket.send_message("gethistory", [addresses], timeout=60) + #res = await socket.send_batch("gethistory", addresses, timeout=60) if res is None or res == OS_ERROR or res == OTHER_EXCEPTION: logging.info("[server] gethistory failed for coin: " + currency) @@ -645,6 +646,7 @@ async def gethistory(params): return json.dumps([]) # DEBUG! PURGE EMPTY LISTS IN LIST? + res = [res] res = [e for e in res if e] logger.debug("DEBUG MESSAGE: " + str(res))