Skip to content
Snippets Groups Projects
Unverified Commit 703763ee authored by Brian of London's avatar Brian of London
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.

Emre Yılmaz
authored6/26/2021 @ 9:12 PM

GitHub
committed6/26/2021 @ 9:12 PM
parent:


Apply this commit:

cb1ed699

from Github
parent ca87b1fb
No related branches found
No related tags found
1 merge request!12Prioritize HIVE_CHAIN_ID property for the chain selection
......@@ -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