• zelig's avatar
    refactor config (transitional). Details: · 63157c79
    zelig authored
    - ReadConfig initialiser sets up global ethutil.Config via config file passed from wrappers
    - does not write out adhoc default (not meant to) but creates empty config file if it does not exist so that globalconf does not complain if persists a flag
    - default datadir and default config file set together with other flag defaults in wrappers
    - default assetpath set together with other command line flags defaults in gui wrapper (not in ethutil.Config or ui/ui_lib)
    - add EnvPrefix, to handle environment variable options too via globalconf
    - this is still transitional: global Config should just be a wrapper around globalconfig config handler and should be moved to go-ethereum
    - actual eth stack config should not be global instead config handled properly with explicit dependency injectioninto eth stack component instances
    63157c79
Name
Last commit
Last update
..
.gitignore Loading commit data...
.travis.yml Loading commit data...
README.md Loading commit data...
big.go Loading commit data...
bytes.go Loading commit data...
common.go Loading commit data...
common_test.go Loading commit data...
config.go Loading commit data...
db.go Loading commit data...
encoding.go Loading commit data...
encoding_test.go Loading commit data...
helpers.go Loading commit data...
keypair.go Loading commit data...
mnemonic.go Loading commit data...
mnemonic_test.go Loading commit data...
package.go Loading commit data...
rand.go Loading commit data...
reactor.go Loading commit data...
reactor_test.go Loading commit data...
rlp.go Loading commit data...
rlp_test.go Loading commit data...
script.go Loading commit data...
trie.go Loading commit data...
trie_test.go Loading commit data...
value.go Loading commit data...
value_test.go Loading commit data...