From 11b23e15c4b61b4657849f2d123bd8cc5da0f4a6 Mon Sep 17 00:00:00 2001 From: Louis Singer <41042567+louisinger@users.noreply.github.com> Date: Tue, 5 Nov 2024 15:32:49 +0100 Subject: [PATCH] Decrease time for nonces registration (#368) --- server/internal/core/application/covenant.go | 4 ++-- server/internal/core/application/covenantless.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/server/internal/core/application/covenant.go b/server/internal/core/application/covenant.go index e4b5f67..43d1274 100644 --- a/server/internal/core/application/covenant.go +++ b/server/internal/core/application/covenant.go @@ -443,7 +443,7 @@ func (s *covenantService) 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() }() @@ -469,7 +469,7 @@ func (s *covenantService) startFinalization() { s.startRound() return } - time.Sleep(time.Duration((s.roundInterval/2)-1) * time.Second) + time.Sleep(time.Duration((s.roundInterval/3)-1) * time.Second) s.finalizeRound() }() diff --git a/server/internal/core/application/covenantless.go b/server/internal/core/application/covenantless.go index 81cc6a3..cf41a57 100644 --- a/server/internal/core/application/covenantless.go +++ b/server/internal/core/application/covenantless.go @@ -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