From a37f108727ad580e7c4fe62bae1ee01ce3badc94 Mon Sep 17 00:00:00 2001 From: Holger Date: Tue, 3 Jul 2018 14:44:27 +0200 Subject: [PATCH] Fix known chains and network versions --- beemapi/rpcutils.py | 6 ++++-- beemgraphenebase/chains.py | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/beemapi/rpcutils.py b/beemapi/rpcutils.py index fb997b68..ba38d635 100644 --- a/beemapi/rpcutils.py +++ b/beemapi/rpcutils.py @@ -16,10 +16,12 @@ def is_network_appbase_ready(props): """Checks if the network is appbase ready""" + network_version = '0.0.0' if "STEEMIT_BLOCKCHAIN_VERSION" in props: - return False + network_version = props['STEEMIT_BLOCKCHAIN_VERSION'] elif "STEEM_BLOCKCHAIN_VERSION" in props: - return True + network_version = props['STEEM_BLOCKCHAIN_VERSION'] + return network_version == '0.19.10' def get_query(appbase, request_id, api_name, name, args): diff --git a/beemgraphenebase/chains.py b/beemgraphenebase/chains.py index 5f810ded..23dcab46 100644 --- a/beemgraphenebase/chains.py +++ b/beemgraphenebase/chains.py @@ -6,7 +6,7 @@ known_chains = { "STEEMAPPBASE": { "chain_id": "0" * int(256 / 4), - "min_version": '0.19.4', + "min_version": '0.19.10', "prefix": "STM", "chain_assets": [ {"asset": "@@000000013", "symbol": "SBD", "precision": 3, "id": 0},