Note to consider private chains on ASSET evaluation#282
Open
nnnarvaez wants to merge 1 commit intosteemit:masterfrom
Open
Note to consider private chains on ASSET evaluation#282nnnarvaez wants to merge 1 commit intosteemit:masterfrom
nnnarvaez wants to merge 1 commit intosteemit:masterfrom
Conversation
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)
```
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The current state only evaluates for the 3 main assets for private chains this blocks operations.
check
/steembase/chains.pyI tried to fetch the current prefix from
steemd.chain_paramsLeaving it here to come back to it when time allows, quick and dirty solution would be to just replace your ASSET names there or use the NAI