diff --git a/silkaj/commands.py b/silkaj/commands.py index fdaa87170784e96140957eff7bdd511c18a530df..bf69f567cf30ab16c38328796626548d498b6b6f 100644 --- a/silkaj/commands.py +++ b/silkaj/commands.py @@ -101,7 +101,7 @@ async def difficulties(): current = await ws.receive_json() jsonschema.validate(current, bma.ws.WS_BLOCK_SCHEMA) diffi = await client(bma.blockchain.difficulties) - await display_diffi(current, diffi) + display_diffi(current, diffi) await client.close() except (aiohttp.WSServerHandshakeError, ValueError) as e: @@ -112,7 +112,7 @@ async def difficulties(): print("{:}:{:}".format(str(e.__class__.__name__), str(e))) -async def display_diffi(current, diffi): +def display_diffi(current, diffi): levels = [OrderedDict((i, d[i]) for i in ("uid", "level")) for d in diffi["levels"]] diffi["levels"] = levels issuers = 0