Closed cyon1c closed 6 years ago
Relevant https://github.com/steemit/steem-python/issues/75 Disk access should not be required to make http requests https://github.com/steemit/steem-python/issues/77 steemd nodes configuration should not be stored in sqlite database https://github.com/steemit/steem-python/compare/fix-install-issues
References to configStorage
in the codebase:
steem/instance.py:2
steem/commit.py:23
steem/cli.py:33
steem/dex.py:1
steem/steemd.py:1
steem/wallet.py:6
Primary functions for the sql config are:
config_defaults = {
"categories_sorting": "trending",
"default_vote_weight": 100.0,
"format": "markdown",
"limit": 10,
"list_sorting": "trending",
"post_category": "steem",
"prefix": "STM"
}
Does it store just 1 account/creds or does it have multi account support?
Multi-account. Relevant info in Wallet.py
class documentation at top.
I propose we leave the account and defaults functionality in place, however remove any references to nodes from the storage and simply offer a default of https://api.steemit.com
if none are specified by the user. And properly handle taking a list or single node.
for reference, internally we hardly use the defaults:
In a grep
of steem/
, the only defaults (besides accounts) referenced are:
default_vote_weight
:2x
prefix
:1x
Some thoughts, from the perspective that steem-python (particularly core) functions need to be seriously simplified and made more reliable if a wallet is ever going to be built on it:
"categories_sorting": "trending",
and "default_vote_weight": 100.0,
seem extraneous.1 - Are you thinking that all of the config defaults should be pulled as too much sugar, or just those keys in particular?
2 - I like the thought of approaching configs through command line arguments and env vars in a .conf
like file.
3 - This seems a reasonable enough approach short term. In the long term, would we want nodes to be specified through the same approach as the config values?
4 - Agreed. Functionality should be storage type agnostic.
Discuss changes for SQL Config to generate spec for #215 .