Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix incompatible type of priv_validator_raddrs #767

Merged
merged 1 commit into from
Mar 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading