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 justification #1491

Merged
merged 10 commits into from
Feb 21, 2023
Merged

Fix justification #1491

merged 10 commits into from
Feb 21, 2023

Conversation

turuslan
Copy link
Contributor

@turuslan turuslan commented Feb 17, 2023

Referenced issues

Description of the Change

  • Add GrandpaJustification::votes_ancestries field.
  • Always finalize blocks with scheduled/forced change digest.
  • Ignore BlockBuilder_inherent_extrinsics changes.
  • HasChange { scheduled, forced }, because warp sync needs to distinguish change type

Benefits

  • Fix substrate couldn't finalize after sync.
  • Fix substrate Import failed: error decoding justification for header
  • Fix kagome BlockBuilder Extrinsic 04360008 cannot be applied and was not pushed to the block. (InvalidTransaction response, code 8)

Possible Drawbacks

Signed-off-by: turuslan <turuslan.devbox@gmail.com>
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
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.

👍

core/consensus/grandpa/has_change.hpp Outdated Show resolved Hide resolved
@turuslan turuslan requested review from Harrm and removed request for kamilsa February 17, 2023 08:34
core/consensus/grandpa/has_change.hpp Outdated Show resolved Hide resolved
core/consensus/grandpa/has_change.hpp Outdated Show resolved Hide resolved
core/consensus/grandpa/has_change.hpp Outdated Show resolved Hide resolved
core/network/impl/sync_protocol_observer_impl.cpp Outdated Show resolved Hide resolved
core/runtime/runtime_api/impl/block_builder.cpp Outdated Show resolved Hide resolved
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
@turuslan turuslan merged commit 4ffd7b2 into master Feb 21, 2023
@turuslan turuslan deleted the fix/justification branch February 21, 2023 07: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.

4 participants