Browse Source

e2e: only check validator sets after statesync (#6980)

pull/6983/head
Sam Kleinman 3 years ago
committed by GitHub
parent
commit
3d410e4a6b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      test/e2e/tests/validator_test.go

+ 8
- 0
test/e2e/tests/validator_test.go View File

@ -20,6 +20,14 @@ func TestValidator_Sets(t *testing.T) {
require.NoError(t, err)
first := status.SyncInfo.EarliestBlockHeight
// for nodes that have to catch up, we should only
// check the validator sets for nodes after this
// point, to avoid inconsistencies with backfill.
if node.StartAt > first {
first = node.StartAt
}
last := status.SyncInfo.LatestBlockHeight
// skip first block if node is pruning blocks, to avoid race conditions


Loading…
Cancel
Save