mirror of
https://github.com/aljazceru/ark.git
synced 2025-12-17 12:14:21 +01:00
Decrease time for nonces registration (#368)
This commit is contained in:
@@ -443,7 +443,7 @@ func (s *covenantService) startRound() {
|
|||||||
s.currentRound = round
|
s.currentRound = round
|
||||||
|
|
||||||
defer func() {
|
defer func() {
|
||||||
time.Sleep(time.Duration(s.roundInterval/2) * time.Second)
|
time.Sleep(time.Duration(s.roundInterval/3) * time.Second)
|
||||||
s.startFinalization()
|
s.startFinalization()
|
||||||
}()
|
}()
|
||||||
|
|
||||||
@@ -469,7 +469,7 @@ func (s *covenantService) startFinalization() {
|
|||||||
s.startRound()
|
s.startRound()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
time.Sleep(time.Duration((s.roundInterval/2)-1) * time.Second)
|
time.Sleep(time.Duration((s.roundInterval/3)-1) * time.Second)
|
||||||
s.finalizeRound()
|
s.finalizeRound()
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
|||||||
@@ -727,7 +727,7 @@ func (s *covenantlessService) startRound() {
|
|||||||
s.currentRound = round
|
s.currentRound = round
|
||||||
|
|
||||||
defer func() {
|
defer func() {
|
||||||
time.Sleep(time.Duration(s.roundInterval/2) * time.Second)
|
time.Sleep(time.Duration(s.roundInterval/3) * time.Second)
|
||||||
s.startFinalization()
|
s.startFinalization()
|
||||||
}()
|
}()
|
||||||
|
|
||||||
@@ -738,7 +738,7 @@ func (s *covenantlessService) startFinalization() {
|
|||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
round := s.currentRound
|
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)
|
thirdOfRemainingDuration := time.Duration(roundRemainingDuration / 3)
|
||||||
|
|
||||||
var roundAborted bool
|
var roundAborted bool
|
||||||
|
|||||||
Reference in New Issue
Block a user