Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix finalization bugs and issues #1290

Merged
merged 25 commits into from
Aug 1, 2022
Merged

Fix finalization bugs and issues #1290

merged 25 commits into from
Aug 1, 2022

Conversation

xDimon
Copy link
Member

@xDimon xDimon commented Jul 28, 2022

Referenced issues

Resolves #1260
Resolves #1139

Description of the Change

Catch-up based sync-request in according to applyed blocks
Send neighbor message in case of passive round
remove disconnected peer from stream engine
forget fingerprint of sync-request in case of empty response
conditions of sync-request and normal catch-up of round
Fix mixing full and authority roles
Use short peer_id in log
Crash at execute next round after applying of justification
Make sit_id and round in peer data optional
Order of peer data (about grandpa) initialization
Fix wrong getting of descending chain to block
Suppression of catch-up request to one peer for time
Use cli bootstrap nodes early then spec's ones
Allow to create next round by commit for non finalized
Some improves and fix of typos

Benefits

Improve stability

Igor Egorov and others added 23 commits July 26, 2022 12:42
Signed-off-by: Igor Egorov <igor@soramitsu.co.jp>
Signed-off-by: Igor Egorov <igor@soramitsu.co.jp>
Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
@xDimon xDimon requested review from kamilsa and igor-egorov July 28, 2022 11:53
@codecov
Copy link

codecov bot commented Jul 28, 2022

Codecov Report

Merging #1290 (a861af5) into master (eff70ff) will decrease coverage by 0.17%.
The diff coverage is 3.38%.

@@            Coverage Diff             @@
##           master    #1290      +/-   ##
==========================================
- Coverage   26.02%   25.84%   -0.18%     
==========================================
  Files         595      595              
  Lines       21533    21699     +166     
  Branches    11114    11216     +102     
==========================================
+ Hits         5603     5609       +6     
- Misses      10808    10964     +156     
- Partials     5122     5126       +4     
Impacted Files Coverage Δ
core/application/impl/app_configuration_impl.cpp 24.21% <0.00%> (-0.09%) ⬇️
core/blockchain/impl/block_tree_impl.cpp 21.81% <0.00%> (-0.03%) ⬇️
core/consensus/babe/block_executor.hpp 100.00% <ø> (ø)
core/consensus/grandpa/impl/grandpa_impl.cpp 2.74% <0.00%> (-0.19%) ⬇️
core/consensus/grandpa/impl/voting_round_impl.cpp 24.09% <0.00%> (ø)
core/consensus/grandpa/impl/voting_round_impl.hpp 36.36% <ø> (ø)
core/network/impl/peer_manager_impl.cpp 3.56% <0.00%> (ø)
...network/impl/protocols/block_announce_protocol.cpp 0.00% <0.00%> (ø)
core/network/impl/protocols/grandpa_protocol.cpp 0.00% <0.00%> (ø)
core/network/impl/protocols/grandpa_protocol.hpp 0.00% <ø> (ø)
... and 13 more

Help us with your feedback. Take ten seconds to tell us how you rate us.

Copy link
Contributor

@igor-egorov igor-egorov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@xDimon xDimon enabled auto-merge (squash) July 29, 2022 10:27
@xDimon xDimon changed the title Fix finalisation bugs and issues Fix finalization bugs and issues Aug 1, 2022
Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
@xDimon xDimon merged commit 1f859e5 into master Aug 1, 2022
@xDimon xDimon deleted the fix/finalisation-lag@xdimon branch August 1, 2022 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Catch up lags after unsuccessful attempt Synced peer sends too many redundant messages
3 participants