Skip to content
Snippets Groups Projects
Unverified Commit cb1ed699 authored by Emre Yılmaz's avatar Emre Yılmaz Committed by GitHub
Browse files

Prioritize HIVE_CHAIN_ID property for the chain selection

when both `HIVE_CHAIN_ID` and `STEEM_CHAIN_ID` returns valid IDs, Hive is selected as a network.
parent 6a92c7ba
No related branches found
No related tags found
1 merge request!11Changes specific to HF25 done in https://github.com/holgern/beem master branch
......@@ -304,6 +304,8 @@ class GrapheneRPC(object):
prefix = None
symbols = []
chain_assets = []
if 'HIVE_CHAIN_ID' in props and 'STEEM_CHAIN_ID' in props:
del props['STEEM_CHAIN_ID']
for key in props:
if key[-8:] == "CHAIN_ID":
chain_id = props[key]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment