Skip to content

Commit

Permalink
Merge pull request #3001 from oasisprotocol/ptrus/fix/queries-workload
Browse files Browse the repository at this point in the history
go/txsource: fix queries workload earliest committee epoch
  • Loading branch information
ptrus authored Jun 10, 2020
2 parents ce6ec47 + da790a1 commit aa5a865
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .changelog/3001.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
go/txsource: fix queries workload earliest committee epoch
8 changes: 4 additions & 4 deletions go/oasis-node/cmd/debug/txsource/workload/queries.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,11 @@ func (q *queries) doSchedulerQueries(ctx context.Context, rng *rand.Rand, height
}
// In the E2E-tests we only validators are present in the genesis documents,
// meaning there will be no other committees in the first epoch (epoch=0).
// In epoch 0 the key-manager will register, but not yet compute/storage
// In epoch 1 the key-manager will register, but not yet compute/storage
// workers, since those will wait for key-manager committee to be available.
// This means that compute/storage nodes will register during epoch 1 and
// the committee should be elected from epoch 2 onward.
if epoch > 1 {
// This means that compute/storage nodes will register during epoch 2 and
// the committee should be elected from epoch 3 onward.
if epoch > 2 {
if committees == nil {
q.logger.Error("Missing committee for simple-keyvalue runtime",
"height", height,
Expand Down

0 comments on commit aa5a865

Please sign in to comment.