fix up structure

This commit is contained in:
Jeff Becker
2016-08-17 09:19:56 -04:00
parent b3f8b208cd
commit f1094c0ffe
16 changed files with 244 additions and 89 deletions

View File

@ -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{},
}