mirror of
https://source.quilibrium.com/quilibrium/ceremonyclient.git
synced 2024-12-25 08:05:17 +00:00
d526ec63d0
* v1.4.21 * bump name
44 lines
2.3 KiB
Go
44 lines
2.3 KiB
Go
package config
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type P2PConfig struct {
|
|
D int `yaml:"d"`
|
|
DLo int `yaml:"dLo"`
|
|
DHi int `yaml:"dHi"`
|
|
DScore int `yaml:"dScore"`
|
|
DOut int `yaml:"dOut"`
|
|
HistoryLength int `yaml:"historyLength"`
|
|
HistoryGossip int `yaml:"historyGossip"`
|
|
DLazy int `yaml:"dLazy"`
|
|
GossipFactor float64 `yaml:"gossipFactor"`
|
|
GossipRetransmission int `yaml:"gossipRetransmission"`
|
|
HeartbeatInitialDelay time.Duration `yaml:"heartbeatInitialDelay"`
|
|
HeartbeatInterval time.Duration `yaml:"heartbeatInterval"`
|
|
FanoutTTL time.Duration `yaml:"fanoutTTL"`
|
|
PrunePeers int `yaml:"prunePeers"`
|
|
PruneBackoff time.Duration `yaml:"pruneBackoff"`
|
|
UnsubscribeBackoff time.Duration `yaml:"unsubscribeBackoff"`
|
|
Connectors int `yaml:"connectors"`
|
|
MaxPendingConnections int `yaml:"maxPendingConnections"`
|
|
ConnectionTimeout time.Duration `yaml:"connectionTimeout"`
|
|
DirectConnectTicks uint64 `yaml:"directConnectTicks"`
|
|
DirectConnectInitialDelay time.Duration `yaml:"directConnectInitialDelay"`
|
|
OpportunisticGraftTicks uint64 `yaml:"opportunisticGraftTicks"`
|
|
OpportunisticGraftPeers int `yaml:"opportunisticGraftPeers"`
|
|
GraftFloodThreshold time.Duration `yaml:"graftFloodThreshold"`
|
|
MaxIHaveLength int `yaml:"maxIHaveLength"`
|
|
MaxIHaveMessages int `yaml:"maxIHaveMessages"`
|
|
IWantFollowupTime time.Duration `yaml:"iWantFollowupTime"`
|
|
BootstrapPeers []string `yaml:"bootstrapPeers"`
|
|
ListenMultiaddr string `yaml:"listenMultiaddr"`
|
|
PeerPrivKey string `yaml:"peerPrivKey"`
|
|
TraceLogFile string `yaml:"traceLogFile"`
|
|
MinPeers int `yaml:"minPeers"`
|
|
Network uint8 `yaml:"network"`
|
|
LowWatermarkConnections uint `yaml:"lowWatermarkConnections"`
|
|
HighWatermarkConnections uint `yaml:"highWatermarkConnections"`
|
|
}
|