Initialize keystore in statusd (#1592)

This reverts commit 0b403ce25b because otherwise the CI fails.
This commit is contained in:
Adam Babik 2019-08-31 16:55:05 +02:00 committed by GitHub
parent bf95a71f6f
commit 3dbcb6a19e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -212,8 +212,7 @@ xgo-install:
go get -u github.com/karalabe/xgo go get -u github.com/karalabe/xgo
gomobile-install: xtools-install gomobile-install: xtools-install
go get -d golang.org/x/mobile/cmd/gomobile go get golang.org/x/mobile/cmd/gomobile
cd $(GOPATH)/src/golang.org/x/mobile && git checkout 30c70e3810e97d051f18b66d59ae242540c0c391 && go install ./cmd/gomobile
release-install: release-install:
go get -u github.com/c4milo/github-release go get -u github.com/c4milo/github-release

View File

@ -123,6 +123,11 @@ func main() {
} }
backend := api.NewStatusBackend() backend := api.NewStatusBackend()
err = backend.AccountManager().InitKeystore(config.KeyStoreDir)
if err != nil {
logger.Error("Failed to init keystore", "error", err)
return
}
err = backend.StartNode(config) err = backend.StartNode(config)
if err != nil { if err != nil {
logger.Error("Node start failed", "error", err) logger.Error("Node start failed", "error", err)