Commit b868926d authored by masala's avatar masala

remove flag period

parent e6530ae9
......@@ -57,7 +57,6 @@ type katzenpost struct {
lastPort uint16
nodeIdx int
providerIdx int
period time.Duration
recipients map[string]*ecdh.PublicKey
}
......@@ -131,8 +130,6 @@ func (s *katzenpost) genNodeConfig(isProvider bool, isVoting bool) error {
}
cfg.PKI.Nonvoting.PublicKey = string(idKey)
}
// Set the Epoch period
cfg.PKI.EpochPeriod = s.period
// Logging section.
cfg.Logging = new(sConfig.Logging)
......@@ -228,7 +225,6 @@ func (s *katzenpost) genVotingAuthoritiesCfg(numAuthorities int) error {
SendLambda: 123,
SendShift: 12,
SendMaxInterval: 123456,
EpochPeriod: s.period,
}
configs := []*vConfig.Config{}
......@@ -420,12 +416,10 @@ func main() {
voting := flag.Bool("v", false, "Generate voting configuration")
nrVoting := flag.Int("nv", nrAuthorities, "Generate voting configuration")
baseDir := flag.String("b", "", "Path to use as baseDir option")
period := flag.Int("e", 1800, "Seconds per epoch period")
flag.Parse()
s := &katzenpost{
lastPort: basePort + 1,
recipients: make(map[string]*ecdh.PublicKey),
period: time.Duration(*period),
}
bd, err := filepath.Abs(*baseDir); if err != nil {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment