diff --git a/config/flags.go b/config/flags.go index d840b2c3a..a63bd3995 100644 --- a/config/flags.go +++ b/config/flags.go @@ -121,10 +121,13 @@ func BindDymintFlags(cmd *cobra.Command, v *viper.Viper) error { if err := v.BindPFlag("p2p_listen_address", cmd.Flags().Lookup(FlagP2PListenAddress)); err != nil { return err } - if err := v.BindPFlag("gossiped_blocks_cache_size", cmd.Flags().Lookup(FlagP2PGossipCacheSize)); err != nil { + if err := v.BindPFlag("p2p_gossiped_blocks_cache_size", cmd.Flags().Lookup(FlagP2PGossipCacheSize)); err != nil { return err } - if err := v.BindPFlag("bootstrap_time", cmd.Flags().Lookup(FlagP2PBootstrapTime)); err != nil { + if err := v.BindPFlag("p2p_bootstrap_time", cmd.Flags().Lookup(FlagP2PBootstrapTime)); err != nil { + return err + } + if err := v.BindPFlag("p2p_bootstrap_nodes", cmd.Flags().Lookup(FlagP2PBootstrapNodes)); err != nil { return err } diff --git a/config/p2p.go b/config/p2p.go index bc5597e9d..5f79c6091 100644 --- a/config/p2p.go +++ b/config/p2p.go @@ -12,9 +12,9 @@ type P2PConfig struct { //List of nodes used for P2P bootstrapping BootstrapNodes string `mapstructure:"p2p_bootstrap_nodes"` //Size of the Gossipsub router cache - GossipedBlocksCacheSize int `mapstructure:"gossiped_blocks_cache_size"` + GossipedBlocksCacheSize int `mapstructure:"p2p_gossiped_blocks_cache_size"` //Time interval a node tries to bootstrap again, in case no nodes connected - BootstrapTime time.Duration `mapstructure:"bootstrap_time"` + BootstrapTime time.Duration `mapstructure:"p2p_bootstrap_time"` } // Validate P2PConfig diff --git a/config/toml.go b/config/toml.go index 93b19108e..273daacc4 100644 --- a/config/toml.go +++ b/config/toml.go @@ -95,10 +95,12 @@ p2p_listen_address = "{{ .P2P.ListenAddress }}" p2p_bootstrap_nodes = "{{ .P2P.BootstrapNodes }}" # max number of cached messages by gossipsub protocol -gossiped_blocks_cache_size = {{ .P2P.GossipedBlocksCacheSize }} +p2p_gossiped_blocks_cache_size = {{ .P2P.GossipedBlocksCacheSize }} # time interval to check if no p2p nodes are connected to bootstrap again -bootstrap_time = "{{ .P2P.BootstrapTime }}" +p2p_bootstrap_time = "{{ .P2P.BootstrapTime }}" + + #celestia config example: # da_config = "{\"base_url\":\"http:\/\/127.0.0.1:26658\",\"timeout\":5000000000,\"gas_prices\":0.1,\"auth_token\":\"TOKEN\",\"backoff\":{\"initial_delay\":6000000000,\"max_delay\":6000000000,\"growth_factor\":2},\"retry_attempts\":4,\"retry_delay\":3000000000}"