Skip to content

Commit

Permalink
Removed checking of the height and relying on validate function
Browse files Browse the repository at this point in the history
This should stop asking for messages that we already have (tossing out good stuff when we should not)
  • Loading branch information
Emyrk committed Jan 30, 2018
1 parent 21d4e91 commit a550448
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion state/stateConsensus.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ ackLoop:
select {
case ack := <-s.ackQueue:
a := ack.(*messages.Ack)
if a.DBHeight >= s.LLeaderHeight && ack.Validate(s) == 1 {
if ack.Validate(s) == 1 {
if s.IgnoreMissing {
now := s.GetTimestamp().GetTimeSeconds()
if now-a.GetTimestamp().GetTimeSeconds() < 60*15 {
Expand Down

0 comments on commit a550448

Please sign in to comment.