Skip to content

Commit

Permalink
go/oasis-node/cmd: Add missing namespace to LatestStateRoot
Browse files Browse the repository at this point in the history
  • Loading branch information
kostko committed Oct 20, 2021
1 parent 88f77ee commit 377795b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions .changelog/4317.bugfix.2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
go/oasis-node/cmd: Add missing namespace to LatestStateRoot
7 changes: 4 additions & 3 deletions go/oasis-node/cmd/node/control.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,10 @@ func (n *Node) GetRuntimeStatus(ctx context.Context) (map[common.Namespace]contr
status.LatestHash = blk.Header.EncodedHash()
status.LatestTime = blk.Header.Timestamp
status.LatestStateRoot = storage.Root{
Version: blk.Header.Round,
Type: storage.RootTypeState,
Hash: blk.Header.StateRoot,
Namespace: blk.Header.Namespace,
Version: blk.Header.Round,
Type: storage.RootTypeState,
Hash: blk.Header.StateRoot,
}
default:
n.logger.Error("failed to fetch latest runtime block",
Expand Down

0 comments on commit 377795b

Please sign in to comment.