Skip to content

Commit

Permalink
Fix known chains and network versions
Browse files Browse the repository at this point in the history
  • Loading branch information
holgern committed Jul 3, 2018
1 parent 5fe65b0 commit a37f108
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions beemapi/rpcutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion beemgraphenebase/chains.py
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down

0 comments on commit a37f108

Please sign in to comment.