Skip to content

Commit

Permalink
Merge pull request #5386 from oasisprotocol/kostko/feature/upgrade-fixes
Browse files Browse the repository at this point in the history
Various minor upgrade-related fixes
  • Loading branch information
kostko authored Oct 7, 2023
2 parents ab83d43 + f85d47c commit 553e006
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
Empty file added .changelog/5386.trivial.md
Empty file.
3 changes: 3 additions & 0 deletions go/oasis-node/cmd/genesis/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,9 @@ NodeLoop:
}
}

// Reduce maximum consensus layer block size.
newDoc.Consensus.Parameters.MaxBlockSize = 1_048_576 // 1 MiB

return &newDoc, nil
}

Expand Down
3 changes: 2 additions & 1 deletion go/oasis-test-runner/scenario/e2e/runtime/helpers_runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@ func (sc *Scenario) EnsureActiveVersionForComputeWorker(ctx context.Context, nod
return fmt.Errorf("%s: unexpected active version (expected: %s got: %s)", node.Name, v, cs.ActiveVersion)
}
if cs.Status != commonWorker.StatusStateReady {
return fmt.Errorf("%s: runtime is not ready (got: %s)", node.Name, cs.Status)
time.Sleep(1 * time.Second)
continue
}
break
}
Expand Down
2 changes: 2 additions & 0 deletions go/worker/common/committee/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -613,6 +613,8 @@ func (n *Node) handleNewEventLocked(ev *roothash.Event) {

// Guarded by n.CrossNode.
func (n *Node) handleRuntimeHostEventLocked(ev *host.Event) {
n.logger.Debug("got runtime event", "ev", ev)

switch {
case ev.Started != nil:
atomic.StoreUint32(&n.hostedRuntimeProvisioned, 1)
Expand Down

0 comments on commit 553e006

Please sign in to comment.