Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added .changelog/6299.trivial.md
Empty file.
6 changes: 3 additions & 3 deletions go/oasis-node/cmd/node/node_control.go
Original file line number Diff line number Diff line change
Expand Up @@ -312,10 +312,10 @@ func (n *Node) getRuntimeStatus(ctx context.Context) (map[common.Namespace]contr
}

// Fetch storage worker status.
if storageNode := n.StorageWorker.GetRuntime(rt.ID()); storageNode != nil {
status.Storage, err = storageNode.GetStatus(ctx)
if stateSync := n.StorageWorker.GetRuntime(rt.ID()); stateSync != nil {
status.Storage, err = stateSync.GetStatus(ctx)
if err != nil {
logger.Error("failed to fetch storage worker status", "err", err)
logger.Error("failed to fetch state sync worker status", "err", err)
}
}

Expand Down
4 changes: 2 additions & 2 deletions go/oasis-test-runner/oasis/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
roothash "github.com/oasisprotocol/oasis-core/go/roothash/api"
"github.com/oasisprotocol/oasis-core/go/roothash/api/commitment"
upgrade "github.com/oasisprotocol/oasis-core/go/upgrade/api"
workerStorage "github.com/oasisprotocol/oasis-core/go/worker/storage/committee"
"github.com/oasisprotocol/oasis-core/go/worker/storage/statesync"
)

// LogAssertEvent returns a handler which checks whether a specific log event was
Expand Down Expand Up @@ -116,7 +116,7 @@ func LogAssertRoothashRoothashReindexing() log.WatcherHandlerFactory {
// LogAssertCheckpointSync returns a handler which checks whether initial storage sync from
// a checkpoint was successful or not.
func LogAssertCheckpointSync() log.WatcherHandlerFactory {
return LogAssertEvent(workerStorage.LogEventCheckpointSyncSuccess, "checkpoint sync did not succeed")
return LogAssertEvent(statesync.LogEventCheckpointSyncSuccess, "checkpoint sync did not succeed")
}

// LogAssertDiscrepancyMajorityFailure returns a handler which checks whether a discrepancy resolution
Expand Down
Loading
Loading