[#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 <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2021-08-24 10:31:05 +03:00 committed by Alex Vanin
parent 3c78890b97
commit 05d5b724a9

View file

@ -156,7 +156,7 @@ type cfgNetmap struct {
state *networkState state *networkState
reBootstrapEnabled bool needBootstrap bool
reBoostrapTurnedOff *atomic.Bool // managed by control service in runtime reBoostrapTurnedOff *atomic.Bool // managed by control service in runtime
startEpoch uint64 // epoch number when application is started startEpoch uint64 // epoch number when application is started
} }
@ -258,7 +258,7 @@ func initCfg(path string) *cfg {
scriptHash: contractsconfig.Netmap(appCfg), scriptHash: contractsconfig.Netmap(appCfg),
state: state, state: state,
workerPool: netmapWorkerPool, workerPool: netmapWorkerPool,
reBootstrapEnabled: !relayOnly, needBootstrap: !relayOnly,
reBoostrapTurnedOff: atomic.NewBool(relayOnly), reBoostrapTurnedOff: atomic.NewBool(relayOnly),
}, },
cfgGRPC: cfgGRPC{ cfgGRPC: cfgGRPC{