mirror of
https://github.com/go-i2p/go-i2p.git
synced 2025-07-04 21:55:18 -04:00
24 lines
530 B
Go
24 lines
530 B
Go
package config
|
|
|
|
// configuration for 1 reseed server
|
|
type ReseedConfig struct {
|
|
// url of reseed server
|
|
Url string
|
|
// fingerprint of reseed su3 signing key
|
|
SU3Fingerprint string
|
|
}
|
|
|
|
type BootstrapConfig struct {
|
|
// if we have less than this many peers we should reseed
|
|
LowPeerThreshold int
|
|
// reseed servers
|
|
ReseedServers []*ReseedConfig
|
|
}
|
|
|
|
// default configuration for network bootstrap
|
|
var DefaultBootstrapConfig = BootstrapConfig{
|
|
LowPeerThreshold: 10,
|
|
// TODO: add reseed servers
|
|
ReseedServers: []*ReseedConfig{},
|
|
}
|