提交 d0a3f9ba 作者: Brian Tiger Chow 提交者: Juan Batiz-Benet

feat(2/init) expose init with defaults

will support daemon initialization

License: MIT
Signed-off-by: 's avatarBrian Tiger Chow <brian@perfmode.com>

# TYPES
# feat
# fix
# docs
# style (formatting, missing semi colons, etc; no code change):
# refactor
# test (adding missing tests, refactoring tests; no production code change)
# chore (updating grunt tasks etc; no production code change)
Signed-off-by: 's avatarBrian Tiger Chow <brian.holderchow@gmail.com>
上级 6a380ff5
......@@ -82,7 +82,11 @@ IPFS and are now interfacing with the ipfs merkledag!
For a short demo of what you can do, enter 'ipfs tour'
`
// NB: if dspath is not provided, it will be retrieved from the config
func initWithDefaults(configRoot string) error {
_, err := doInit(configRoot, "", false, nBitsForKeypairDefault)
return errors.Wrap(err)
}
func doInit(configRoot string, dspathOverride string, force bool, nBitsForKeypair int) (interface{}, error) {
u.POut("initializing ipfs node at %s\n", configRoot)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论