e2e: improve p2p mode selection (#6929)

The previous implemention of hybrid set testing, which was entirely my
own creation, was a bit peculiar, and I think this probably clears thins up.

The previous implementation had far fewer legacy nodes in hybrid
networks, *and* also for some reason that I can't quite explain,
caused a test case to fail.
This commit is contained in:
Sam Kleinman
2021-09-12 06:30:58 +00:00
committed by GitHub
parent 055f1b3279
commit 3bf0c7a712
3 changed files with 21 additions and 27 deletions
-3
View File
@@ -60,9 +60,6 @@ type Manifest struct {
// by individual nodes.
LogLevel string `toml:"log_level"`
// UseLegacyP2P uses the legacy p2p layer for all nodes in a test.
UseLegacyP2P bool `toml:"use_legacy_p2p"`
// QueueType describes the type of queue that the system uses internally
QueueType string `toml:"queue_type"`
+1 -1
View File
@@ -182,7 +182,7 @@ func LoadTestnet(file string) (*Testnet, error) {
Perturbations: []Perturbation{},
LogLevel: manifest.LogLevel,
QueueType: manifest.QueueType,
UseLegacyP2P: manifest.UseLegacyP2P && nodeManifest.UseLegacyP2P,
UseLegacyP2P: nodeManifest.UseLegacyP2P,
}
if node.StartAt == testnet.InitialHeight {