Skip to content

Commit

Permalink
go/oasis-test-runner: set seed nodes only on nodes not using sentries
Browse files Browse the repository at this point in the history
  • Loading branch information
ptrus committed Jan 17, 2020
1 parent ccc113a commit a876333
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 2 deletions.
3 changes: 1 addition & 2 deletions go/oasis-test-runner/oasis/args.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,7 @@ func (args *argBuilder) appendSeedNodes(net *Network) *argBuilder {
}

func (args *argBuilder) appendNetwork(net *Network) *argBuilder {
args = args.grpcLogDebug().
appendSeedNodes(net)
args = args.grpcLogDebug()
return args
}

Expand Down
1 change: 1 addition & 0 deletions go/oasis-test-runner/oasis/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ func (client *Client) startNode() error {
tendermintCoreListenAddress(client.consensusPort).
storageBackend(storageClient.BackendName).
appendNetwork(client.net).
appendSeedNodes(client.net).
runtimeTagIndexerBackend("bleve")
for _, v := range client.net.runtimes {
if v.kind != registry.KindCompute {
Expand Down
1 change: 1 addition & 0 deletions go/oasis-test-runner/oasis/compute.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ func (worker *Compute) startNode() error {
workerRuntimeLoader(worker.net.cfg.RuntimeLoaderBinary).
workerTxnschedulerCheckTxEnabled().
appendNetwork(worker.net).
appendSeedNodes(worker.net).
appendEntity(worker.entity)
for _, v := range worker.net.runtimes {
if v.kind != registry.KindCompute {
Expand Down
1 change: 1 addition & 0 deletions go/oasis-test-runner/oasis/keymanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ func (km *Keymanager) startNode() error {
workerKeymanagerRuntimeID(km.runtime.id).
workerKeymanagerMayGenerate().
appendNetwork(km.net).
appendSeedNodes(km.net).
appendEntity(km.entity)
if km.runtime.teeHardware != node.TEEHardwareInvalid {
args = args.workerKeymanagerTEEHardware(km.runtime.teeHardware)
Expand Down
1 change: 1 addition & 0 deletions go/oasis-test-runner/oasis/sentry.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ func (sentry *Sentry) startNode() error {
workerSentryControlPort(sentry.controlPort).
tendermintCoreListenAddress(sentry.consensusPort).
appendNetwork(sentry.net).
appendSeedNodes(sentry.net).
addValidatorsAsSentryUpstreams(validators)

if sentry.cmd, _, err = sentry.net.startOasisNode(sentry.dir, nil, args, sentry.Name, false, false); err != nil {
Expand Down
1 change: 1 addition & 0 deletions go/oasis-test-runner/oasis/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ func (worker *Storage) startNode() error {
workerStorageEnabled().
workerStorageDebugIgnoreApplies(worker.ignoreApplies).
appendNetwork(worker.net).
appendSeedNodes(worker.net).
appendEntity(worker.entity)
for _, v := range worker.net.runtimes {
if v.kind != registry.KindCompute {
Expand Down
2 changes: 2 additions & 0 deletions go/oasis-test-runner/oasis/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ func (val *Validator) startNode() error {
if len(val.sentries) > 0 {
args = args.addSentries(val.sentries).
tendermintDisablePeerExchange()
} else {
args = args.appendSeedNodes(val.net)
}

if len(val.net.validators) >= 1 && val == val.net.validators[0] {
Expand Down

0 comments on commit a876333

Please sign in to comment.