Skip to content

Commit 5bdc234

Browse files
authored
Merge pull request #26 from cloudstruct/fix-network-env
fix: use CARDANO_NETWORK envvar
2 parents 60dc9b9 + 00a520e commit 5bdc234

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ type MetricsConfig struct {
3737
}
3838

3939
type NodeConfig struct {
40-
Network string `yaml:"network" envconfig:"NETWORK"`
40+
Network string `yaml:"network" envconfig:"CARDANO_NETWORK"`
4141
NetworkMagic uint32 `yaml:"networkMagic" envconfig:"CARDANO_NODE_NETWORK_MAGIC"`
4242
Address string `yaml:"address" envconfig:"CARDANO_NODE_ADDRESS"`
4343
Port uint `yaml:"port" envconfig:"CARDANO_NODE_PORT"`

0 commit comments

Comments
 (0)