loomchain
loomchain copied to clipboard
Split Hsm config out of loom.yml
Added function and test ParseConfigFileName for specify configuration file. ref #1188
- [ ] I added unit tests for any code that added
- [ ] I updated the CHANGELOG.md
- [ ] All IP is original and not copied from another source
- [ ] I assign all copyright to Loom Network for the code in the pull request
Currently, we have duplicate ParseConfig functions, one in cmd/loom/common and another one in config/config. We should remove the one in config/config and then change this line https://github.com/loomnetwork/loomchain/blob/fe27e028672fe46a779d4dfa2c85979465d305a0/rpc/query_server.go#L158 to call ParseConfig in cmd/loom/common
Currently, we have duplicate
ParseConfigfunctions, one incmd/loom/commonand another one inconfig/config. We should remove the one inconfig/configand then change this linehttps://github.com/loomnetwork/loomchain/blob/fe27e028672fe46a779d4dfa2c85979465d305a0/rpc/query_server.go#L158 to call
ParseConfigincmd/loom/common
You got that backwards, config/config should have the canonical ParseConfig, nothing should depend on cmd/loom/common outside of cmd/loom/*