Skip to content

Commit

Permalink
fix: fix incompatible type of priv_validator_raddrs (#767)
Browse files Browse the repository at this point in the history
Signed-off-by: 170210 <j170210@icloud.com>
  • Loading branch information
170210 authored Mar 15, 2024
1 parent 1279868 commit df661e9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,10 +246,10 @@ type BaseConfig struct { //nolint: maligned
PrivValidatorListenAddr string `mapstructure:"priv_validator_laddr"`

// Validator's remote addresses to allow a connection
// Comma separated list of addresses to allow
// ostracon only allows a connection from these addresses separated by a comma
// example) 127.0.0.1
// example) 127.0.0.1,192.168.1.2
// List of addresses in TOML array format to allow
// ostracon only allows a connection from these listed addresses
// example) [ "127.0.0.1" ]
// example) [ "127.0.0.1", "192.168.1.2" ]
PrivValidatorRemoteAddresses []string `mapstructure:"priv_validator_raddrs"`

// A JSON file containing the private key to use for p2p authenticated encryption
Expand Down
10 changes: 5 additions & 5 deletions config/toml.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,11 @@ priv_validator_state_file = "{{ js .BaseConfig.PrivValidatorState }}"
priv_validator_laddr = "{{ .BaseConfig.PrivValidatorListenAddr }}"
# Validator's remote address to allow a connection
# Comma separated list of addresses to allow
# ostracon only allows a connection from these addresses separated by a comma
# example) 127.0.0.1
# example) 127.0.0.1,192.168.1.2
priv_validator_raddrs = "127.0.0.1"
# List of addresses in TOML array format to allow
# ostracon only allows a connection from these listed addresses
# example) [ "127.0.0.1" ]
# example) [ "127.0.0.1", "192.168.1.2" ]
priv_validator_raddrs = [ "127.0.0.1" ]
# Path to the JSON file containing the private key to use for node authentication in the p2p protocol
node_key_file = "{{ js .BaseConfig.NodeKey }}"
Expand Down

0 comments on commit df661e9

Please sign in to comment.