mirror of
https://source.quilibrium.com/quilibrium/ceremonyclient.git
synced 2024-11-14 04:05:17 +00:00
41 lines
2.1 KiB
Go
41 lines
2.1 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"`
|
|
}
|