Commit 987770b3 authored by masala's avatar masala

Make epochtime.Period var

parent 36b6388d
......@@ -58,13 +58,13 @@ const (
stateAcceptReveal = "accept_reveal"
stateAcceptSignature = "accept_signature"
stateBootstrap = "bootstrap"
)
var (
mixPublishDeadline = epochtime.Period / 2
authorityVoteDeadline = mixPublishDeadline + epochtime.Period/8
authorityRevealDeadline = authorityVoteDeadline + epochtime.Period/8
publishConsensusDeadline = authorityRevealDeadline + epochtime.Period/8
)
var (
errGone = errors.New("authority: Requested epoch will never get a Document")
errNotYet = errors.New("authority: Document is not ready yet")
)
......@@ -1204,7 +1204,7 @@ func (s *state) onDescriptorUpload(rawDesc []byte, desc *pki.MixDescriptor, epoc
}
func (s *state) documentForEpoch(epoch uint64) ([]byte, error) {
const generationDeadline = 7 * (epochtime.Period / 8)
var generationDeadline = 7 * (epochtime.Period / 8)
s.RLock()
defer s.RUnlock()
......
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