Skip to content

Commit

Permalink
adjust the weights of how offten we review holding against how long w…
Browse files Browse the repository at this point in the history
…e will spend in review
  • Loading branch information
PaulSnow committed May 26, 2019
1 parent 2c76247 commit 8d829c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions state/stateConsensus.go
Expand Up @@ -544,7 +544,7 @@ func (s *State) ReviewHolding() {
if s.ResendHolding == nil {
s.ResendHolding = now
}
if now.GetTimeMilli()-s.ResendHolding.GetTimeMilli() < 300 {
if now.GetTimeMilli()-s.ResendHolding.GetTimeMilli() < 120 {
return
}

Expand Down Expand Up @@ -588,7 +588,7 @@ func (s *State) ReviewHolding() {
cnt := 0
for k, v := range s.Holding {
cnt++
if (cnt&0xFF) == 0 && primitives.NewTimestampNow().GetTimeMilli()-now.GetTimeMilli() > 200 {
if (cnt&0xFF) == 0 && primitives.NewTimestampNow().GetTimeMilli()-now.GetTimeMilli() > 100 {
break
}

Expand Down

0 comments on commit 8d829c1

Please sign in to comment.