From 630d57377abaa1ef0ca24f24bbdd676d4534077e Mon Sep 17 00:00:00 2001 From: Cipio Date: Mon, 14 Dec 2020 15:39:26 -0600 Subject: [PATCH] Fix Slasher Backup DB panic on call. (#8099) --- slasher/node/node.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/slasher/node/node.go b/slasher/node/node.go index 82e4d07e2..5b908bf26 100644 --- a/slasher/node/node.go +++ b/slasher/node/node.go @@ -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 }