Open EclesioMeloJunior opened 1 day ago
What's the rationale for choosing the mean height for the target instead of the highest available?
I don't have a answer for that, I would say that is to not be biased for a single peer.
Changed it to use the highest instead of mean and then the sync stay much more stable! Thanks for the comment @haikoschol
Task summary
The problem is: the calculation is giving a small value which is not allowing Gossamer to request more blocks, for example in this logs:
Even though we received a block announce for block #22631044, we issue a request asking just for block #22630263.
The fix should allow Gossamer to not lag behind, like in this case and stay up to date with the announcements of the network