Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions plugin-adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -636,15 +636,17 @@ 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)

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))
Expand Down