From 05d5b724a9b590c8e642e266ca05afa1be37724c Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Tue, 24 Aug 2021 10:31:05 +0300 Subject: [PATCH] [#761] cmd/node: Rename `reBootstrapEnabled` to `needBootstrap` `reBootstrapEnabled` state var is not used. It is going to be used to decide whether to bootstrap node or not. Signed-off-by: Leonard Lyubich --- cmd/neofs-node/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/neofs-node/config.go b/cmd/neofs-node/config.go index 4bf4dc30..6c38b806 100644 --- a/cmd/neofs-node/config.go +++ b/cmd/neofs-node/config.go @@ -156,7 +156,7 @@ type cfgNetmap struct { state *networkState - reBootstrapEnabled bool + needBootstrap bool reBoostrapTurnedOff *atomic.Bool // managed by control service in runtime startEpoch uint64 // epoch number when application is started } @@ -258,7 +258,7 @@ func initCfg(path string) *cfg { scriptHash: contractsconfig.Netmap(appCfg), state: state, workerPool: netmapWorkerPool, - reBootstrapEnabled: !relayOnly, + needBootstrap: !relayOnly, reBoostrapTurnedOff: atomic.NewBool(relayOnly), }, cfgGRPC: cfgGRPC{