Skip to content

Commit

Permalink
Merge pull request #238 from kaleido-io/update-node-config
Browse files Browse the repository at this point in the history
Remove deprecated global node config
  • Loading branch information
peterbroadhurst committed Jan 30, 2023
2 parents 7f23b64 + 24c4264 commit afc9e54
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
5 changes: 1 addition & 4 deletions internal/core/config.go
@@ -1,4 +1,4 @@
// Copyright © 2022 Kaleido, Inc.
// Copyright © 2023 Kaleido, Inc.
//
// SPDX-License-Identifier: Apache-2.0
//
Expand Down Expand Up @@ -58,9 +58,6 @@ func NewFireflyConfig(stack *types.Stack, member *types.Organization) *types.Fir
UI: &types.UIConfig{
Path: "./frontend",
},
Node: &types.NodeConfig{
Name: member.NodeName,
},
Event: &types.EventConfig{
DBEvents: &types.DBEventsConfig{
BufferSize: 10000,
Expand Down
5 changes: 4 additions & 1 deletion internal/stacks/stack_manager.go
@@ -1,4 +1,4 @@
// Copyright © 2021 Kaleido, Inc.
// Copyright © 2023 Kaleido, Inc.
//
// SPDX-License-Identifier: Apache-2.0
//
Expand Down Expand Up @@ -914,6 +914,9 @@ func (s *StackManager) runFirstTimeSetup(options *types.StartOptions) (messages
newConfig.Namespaces.Predefined[0].Multiparty = &types.MultipartyConfig{
Enabled: true,
Org: orgConfig,
Node: &types.NodeConfig{
Name: member.NodeName,
},
Contract: []*types.ContractConfig{
{
Location: contractLocation,
Expand Down
3 changes: 1 addition & 2 deletions pkg/types/firefly_config.go
@@ -1,4 +1,4 @@
// Copyright © 2022 Kaleido, Inc.
// Copyright © 2023 Kaleido, Inc.
//
// SPDX-License-Identifier: Apache-2.0
//
Expand Down Expand Up @@ -160,7 +160,6 @@ type FireflyConfig struct {
SPI *SPIServerConfig `yaml:"spi,omitempty"` // V1.1 and later SPI
Metrics *MetricsServerConfig `yaml:"metrics,omitempty"`
UI *UIConfig `yaml:"ui,omitempty"`
Node *NodeConfig `yaml:"node,omitempty"`
Event *EventConfig `yaml:"event,omitempty"`
Plugins *Plugins `yaml:"plugins"`
Namespaces *NamespacesConfig `yaml:"namespaces"`
Expand Down
3 changes: 2 additions & 1 deletion pkg/types/namespace.go
@@ -1,4 +1,4 @@
// Copyright © 2022 Kaleido, Inc.
// Copyright © 2023 Kaleido, Inc.
//
// SPDX-License-Identifier: Apache-2.0
//
Expand Down Expand Up @@ -35,6 +35,7 @@ type Plugins struct {
type MultipartyConfig struct {
Enabled bool `yaml:"enabled"`
Org *OrgConfig `yaml:"org"`
Node *NodeConfig `yaml:"node"`
Contract []*ContractConfig `yaml:"contract"`
}

Expand Down

0 comments on commit afc9e54

Please sign in to comment.