mirror of
https://github.com/go-i2p/go-i2p.git
synced 2025-07-05 06:05:16 -04:00
fix up structure
This commit is contained in:
@ -1,5 +1,23 @@
|
||||
package config
|
||||
|
||||
type BootstrapConfig struct {
|
||||
LowPeerThreshold int
|
||||
// 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{},
|
||||
}
|
||||
|
Reference in New Issue
Block a user