Skip to content

Commit 8b92f56

Browse files
committed
go/oasis-node/cmd: Allow joint validator and observer mode
This makes it consistent with the fact that node can currently be validator and compute at the same time.
1 parent cad06c0 commit 8b92f56

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

go/oasis-node/cmd/node/node.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ func NewNode() (node *Node, err error) { // nolint: gocyclo
489489
return nil, fmt.Errorf("node has no entity configured but expects one")
490490
}
491491

492-
if config.GlobalConfig.Mode == config.ModeClient && entityID != nil {
492+
if config.GlobalConfig.Mode == config.ModeClient && !config.GlobalConfig.Consensus.Validator && entityID != nil {
493493
return nil, fmt.Errorf("client node must not have entity configured, try using observer mode instead")
494494
}
495495

0 commit comments

Comments
 (0)