Decrease time for nonces registration (#368)

This commit is contained in:
Louis Singer
2024-11-05 15:32:49 +01:00
committed by GitHub
parent 04e57f8179
commit 11b23e15c4
2 changed files with 4 additions and 4 deletions

View File

@@ -727,7 +727,7 @@ func (s *covenantlessService) startRound() {
s.currentRound = round
defer func() {
time.Sleep(time.Duration(s.roundInterval/2) * time.Second)
time.Sleep(time.Duration(s.roundInterval/3) * time.Second)
s.startFinalization()
}()
@@ -738,7 +738,7 @@ func (s *covenantlessService) startFinalization() {
ctx := context.Background()
round := s.currentRound
roundRemainingDuration := time.Duration(s.roundInterval/2-1) * time.Second
roundRemainingDuration := time.Duration(s.roundInterval/3-1) * time.Second
thirdOfRemainingDuration := time.Duration(roundRemainingDuration / 3)
var roundAborted bool