Fix Slasher Backup DB panic on call. (#8099)

This commit is contained in:
Cipio 2020-12-14 15:39:26 -06:00 committed by GitHub
parent 3e9d721280
commit 630d57377a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -89,16 +89,16 @@ func NewSlasherNode(cliCtx *cli.Context) (*SlasherNode, error) {
stop: make(chan struct{}),
}
if err := slasher.startDB(); err != nil {
return nil, err
}
if !cliCtx.Bool(cmd.DisableMonitoringFlag.Name) {
if err := slasher.registerPrometheusService(cliCtx); err != nil {
return nil, err
}
}
if err := slasher.startDB(); err != nil {
return nil, err
}
if err := slasher.registerBeaconClientService(); err != nil {
return nil, err
}