Skip to content

Commit

Permalink
param renamed
Browse files Browse the repository at this point in the history
  • Loading branch information
srene committed May 15, 2024
1 parent 68091c2 commit 49d0c2d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func DefaultConfig(home, chainId string) *NodeConfig {
BootstrapTime: 30 * time.Second,
ListenAddress: DefaultListenAddress,
BootstrapNodes: "",
Advertising: true,
AdvertisingEnabled: true,
},
}

Expand Down
2 changes: 1 addition & 1 deletion config/p2p.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type P2PConfig struct {
//Time interval a node tries to bootstrap again, in case no nodes connected
BootstrapTime time.Duration `mapstructure:"p2p_bootstrap_time"`
//Param used to enable the advertisement of the node to be part of the P2P network in the DHT
Advertising bool `mapstructure:"p2p_advertising"`
AdvertisingEnabled bool `mapstructure:"p2p_advertising_enabled"`
}

// Validate P2PConfig
Expand Down
2 changes: 1 addition & 1 deletion config/toml.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ p2p_gossiped_blocks_cache_size = {{ .P2PConfig.GossipedBlocksCacheSize }}
p2p_bootstrap_time = "{{ .P2PConfig.BootstrapTime }}"
# set to false to disable advertising the node to the P2P network
p2p_advertising= "{{ .P2PConfig.Advertising }}"
p2p_advertising_enabled= "{{ .P2PConfig.AdvertisingEnabled }}"
#celestia config example:
Expand Down
2 changes: 1 addition & 1 deletion p2p/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ func (c *Client) peerDiscovery(ctx context.Context) error {
return err
}

if c.conf.Advertising {
if c.conf.AdvertisingEnabled {
err = c.advertise(ctx)
if err != nil {
return err
Expand Down

0 comments on commit 49d0c2d

Please sign in to comment.