From 45e2259501740308b0aac19aacf8df48e274c306 Mon Sep 17 00:00:00 2001 From: nnnarvaez <35651808+nnnarvaez@users.noreply.github.com> Date: Sat, 30 Mar 2019 09:19:26 +0100 Subject: [PATCH] Note to consider private chains on ASSET evaluation The current state only evaluates for the 3 main assets for private chains this blocks operations. check `/steembase/chains.py` ``` from chain import know_chains Iterate ASSETS``` I tried to fetch the current prefix from `steemd.chain_params` ``` @property def chain_params(self): """ Identify the connected network. This call returns a dictionary with keys chain_id, prefix, and other chain specific settings """ props = self.get_dynamic_global_properties() chain = props["current_supply"].split(" ")[1] assert chain in known_chains, "The chain you are connecting " + \ "to is not supported" return known_chains.get(chain) ``` --- steembase/operations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/steembase/operations.py b/steembase/operations.py index e9a2d20..bd31978 100644 --- a/steembase/operations.py +++ b/steembase/operations.py @@ -18,7 +18,7 @@ "STEEM": 3, "VESTS": 6, "SBD": 3, -} +} # this DICT blocks operations on private chains, need to pull assets from /steembase/chains.py `known_chains` class Operation: