From d0123d14466e238e444282bbd3e30f86b2593a85 Mon Sep 17 00:00:00 2001 From: changgesi Date: Thu, 11 Dec 2025 14:03:01 +0800 Subject: [PATCH] chore: minor improvement for docs Signed-off-by: changgesi --- pkg/config/config.go | 6 +++--- pkg/p2p/client.go | 2 +- types/state.go | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/config/config.go b/pkg/config/config.go index 5618f6b658..e392c31e40 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -222,9 +222,9 @@ type LogConfig struct { // P2PConfig contains all peer-to-peer networking configuration parameters type P2PConfig struct { ListenAddress string `mapstructure:"listen_address" yaml:"listen_address" comment:"Address to listen for incoming connections (host:port)"` - Peers string `mapstructure:"peers" yaml:"peers" comment:"Comma separated list of peers to connect to"` - BlockedPeers string `mapstructure:"blocked_peers" yaml:"blocked_peers" comment:"Comma separated list of peer IDs to block from connecting"` - AllowedPeers string `mapstructure:"allowed_peers" yaml:"allowed_peers" comment:"Comma separated list of peer IDs to allow connections from"` + Peers string `mapstructure:"peers" yaml:"peers" comment:"Comma-separated list of peers to connect to"` + BlockedPeers string `mapstructure:"blocked_peers" yaml:"blocked_peers" comment:"Comma-separated list of peer IDs to block from connecting"` + AllowedPeers string `mapstructure:"allowed_peers" yaml:"allowed_peers" comment:"Comma-separated list of peer IDs to allow connections from"` } // SignerConfig contains all signer configuration parameters diff --git a/pkg/p2p/client.go b/pkg/p2p/client.go index d01a453203..c3c08f9d67 100644 --- a/pkg/p2p/client.go +++ b/pkg/p2p/client.go @@ -361,7 +361,7 @@ func (c *Client) setupGossiping(ctx context.Context) error { return nil } -// parseAddrInfoList parses a comma separated string of multiaddrs into a list of peer.AddrInfo structs +// parseAddrInfoList parses a comma-separated string of multiaddrs into a list of peer.AddrInfo structs func (c *Client) parseAddrInfoList(addrInfoStr string) []peer.AddrInfo { if len(addrInfoStr) == 0 { return []peer.AddrInfo{} diff --git a/types/state.go b/types/state.go index 4b87dc6b5f..bf535de70c 100644 --- a/types/state.go +++ b/types/state.go @@ -31,7 +31,7 @@ type State struct { LastHeaderHash Hash // DAHeight identifies DA block containing the latest applied Evolve block for a syncing node. - // In the case of an aggregator, this corresponds as the last fetched DA block height for forced inclused transactions. + // In the case of an aggregator, this corresponds as the last fetched DA block height for forced included transactions. DAHeight uint64 // the latest AppHash we've received from calling abci.Commit()