Skip to content

Commit

Permalink
go/oasis-test-runner/oasis: Set consensus.validator flag for validators
Browse files Browse the repository at this point in the history
This ensures consensusValidatorHook() is called upon validators'
(re-)registration.
  • Loading branch information
tjanez committed Oct 28, 2019
1 parent 9908b0e commit 952ab7c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions go/oasis-test-runner/oasis/args.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,13 @@ func (args *argBuilder) consensusBackend(backend string) *argBuilder {
return args
}

func (args *argBuilder) consensusValidator() *argBuilder {
args.vec = append(args.vec, []string{
"--" + flags.CfgConsensusValidator,
}...)
return args
}

func (args *argBuilder) tendermintCoreListenAddress(port uint16) *argBuilder {
args.vec = append(args.vec, []string{
"--" + tendermint.CfgCoreListenAddress, "tcp://0.0.0.0:" + strconv.Itoa(int(port)),
Expand Down
1 change: 1 addition & 0 deletions go/oasis-test-runner/oasis/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ func (val *Validator) P2PKeyPath() string {
func (val *Validator) startNode() error {
args := newArgBuilder().
debugAllowTestKeys().
consensusValidator().
tendermintCoreListenAddress(val.consensusPort).
grpcDebugPort(val.grpcDebugPort).
storageBackend("client").
Expand Down

0 comments on commit 952ab7c

Please sign in to comment.