Skip to content

Commit

Permalink
fixup! go/oasis-node/cmd/control: Add runtime-status
Browse files Browse the repository at this point in the history
  • Loading branch information
Yawning committed Mar 23, 2022
1 parent 9abf2e2 commit 9f364f4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions go/oasis-node/cmd/control/runtime_stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,15 @@ func doRuntimeStats(cmd *cobra.Command, args []string) { //nolint:gocyclo
endHeight = uint64(blk.Height)
}

chainCtx, err := consensus.GetChainContext(ctx)
if err != nil {
logger.Error("failed to get chain context",
"err", err,
)
os.Exit(1)
}
signature.SetChainContext(chainCtx)

logger.Info("gathering statistics",
"rumtime_id", runtimeID,
"start_height", startHeight,
Expand Down

0 comments on commit 9f364f4

Please sign in to comment.