node,blocksync,config: remove support for running nodes with blocksync disabled (#7159)

We stopped testing these configurations a while ago, and it doesn't
really make sense to allow nodes to run in this configuration. This
drops support for non-blocksync nodes and cleans up the
configuration/tests accordingly.

Closes: #6908
This commit is contained in:
Sam Kleinman
2021-10-26 14:35:14 +00:00
committed by GitHub
parent b4bc6bb4e8
commit cb39e2f917
12 changed files with 30 additions and 139 deletions
-1
View File
@@ -278,7 +278,6 @@ func generateNode(
Database: nodeDatabases.Choose(r),
PrivvalProtocol: nodePrivvalProtocols.Choose(r),
Mempool: nodeMempools.Choose(r),
BlockSync: "v0",
StateSync: e2e.StateSyncDisabled,
PersistInterval: ptrUint64(uint64(nodePersistIntervals.Choose(r).(int))),
SnapshotInterval: uint64(nodeSnapshotIntervals.Choose(r).(int)),
-3
View File
@@ -43,9 +43,6 @@ func TestGenerator(t *testing.T) {
t.Run("PrivvalProtocol", func(t *testing.T) {
require.NotZero(t, node.PrivvalProtocol)
})
t.Run("BlockSync", func(t *testing.T) {
require.NotZero(t, node.BlockSync)
})
}
})
}