File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -70,6 +70,14 @@ func NodePortsForMode(mode NodeMode) []NodePort {
7070 }
7171}
7272
73+ // Override key constants for P2P configuration fields.
74+ const (
75+ KeyP2PExternalAddress = "network.p2p.external_address"
76+ KeyP2PMaxConnections = "network.p2p.max_connections"
77+ KeyP2PSendRate = "network.p2p.send_rate"
78+ KeyP2PRecvRate = "network.p2p.recv_rate"
79+ )
80+
7381// Pruning strategy constants.
7482const (
7583 PruningDefault = "default"
Original file line number Diff line number Diff line change @@ -310,6 +310,16 @@ func SnapshotGenerationOverrides(keepRecent int32) map[string]string {
310310 }
311311}
312312
313+ // StateSyncerOverrides returns the config overrides for nodes acting as
314+ // state-sync snapshot servers.
315+ func StateSyncerOverrides () map [string ]string {
316+ return map [string ]string {
317+ KeyP2PMaxConnections : "500" ,
318+ KeyP2PSendRate : "20971520" ,
319+ KeyP2PRecvRate : "20971520" ,
320+ }
321+ }
322+
313323func defaultMoniker () string {
314324 name , err := os .Hostname ()
315325 if err != nil {
You can’t perform that action at this time.
0 commit comments