Skip to content

Commit

Permalink
ir: add new health status INITIALIZING_NETWORK in ir New func
Browse files Browse the repository at this point in the history
New health status for time-spending process - initializing Neo network by
blockchain: `INITIALIZING_NETWORK`.

Closes #2923.

Signed-off-by: Andrey Butusov <[email protected]>
  • Loading branch information
End-rey committed Sep 17, 2024
1 parent a7f03d1 commit 3149d62
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
1 change: 1 addition & 0 deletions pkg/innerring/innerring.go
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,7 @@ func New(ctx context.Context, log *zap.Logger, cfg *viper.Viper, errChan chan<-

setNetworkSettingsDefaults(&deployPrm.NetmapContract.Config)

server.setHealthStatus(control.HealthStatus_INITIALIZING_NETWORK)
err = deploy.Deploy(ctx, deployPrm)
if err != nil {
return nil, fmt.Errorf("deploy Sidechain: %w", err)
Expand Down
18 changes: 11 additions & 7 deletions pkg/services/control/ir/types.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions pkg/services/control/ir/types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,7 @@ enum HealthStatus {

// IR application is shutting down.
SHUTTING_DOWN = 3;

// Initializing Neo network
INITIALIZING_NETWORK = 4;
}

0 comments on commit 3149d62

Please sign in to comment.