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

This commit is contained in:
Sam Kleinman
2021-09-23 14:31:59 -04:00
committed by GitHub
parent 8a171b8426
commit 3d410e4a6b
+8
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