From 703763ee67941f4cda23109acb24907efb44e237 Mon Sep 17 00:00:00 2001 From: Brian of London <brian@podping.org> Date: Thu, 6 Oct 2022 08:15:55 +0300 Subject: [PATCH] Prioritize HIVE_CHAIN_ID property for the chain selection MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: cb1ed699769a438118d11a84ca4ca8e8b6f6e84f from Github --- beemapi/graphenerpc.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/beemapi/graphenerpc.py b/beemapi/graphenerpc.py index 48f1f56f..e904406e 100644 --- a/beemapi/graphenerpc.py +++ b/beemapi/graphenerpc.py @@ -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] -- GitLab