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/kusama grid size fixes #2180

Merged
merged 51 commits into from
Oct 2, 2024
Merged

Fix/kusama grid size fixes #2180

merged 51 commits into from
Oct 2, 2024

Conversation

iceseer
Copy link
Contributor

@iceseer iceseer commented Aug 8, 2024

Referenced issues

Description of the Change

Grid size fixed to authorities size, because we can not be a parachain but still validator.
Callback for sends could be skipped if connection already was present.
Added cache for send our view process to insure we don't repeat message twice.
Added additional tests for grid

Possible Drawbacks

Checklist Before Opening a PR

Before you open a Pull Request (PR), please make sure you've completed the following steps and confirm by answering 'Yes' to each item:

  1. Code is formatted: Have you run your code through clang-format to ensure it adheres to the project's coding standards? Yes
  2. Code is documented: Have you added comments and documentation to your code according to the guidelines in the project's contributing guidelines? Yes
  3. Self-review: Have you reviewed your own code to ensure it is free of typos, syntax errors, logical errors, and unresolved TODOs or FIXME without linking to an issue? Yes
  4. Zombienet Tests: Have you ensured that the zombienet tests are passing? Zombienet is a network simulation and testing tool used in this project. It's important to ensure that these tests pass to maintain the stability and reliability of the project. Yes

turuslan and others added 15 commits August 6, 2024 16:47
Signed-off-by: iceseer <[email protected]>
Signed-off-by: iceseer <[email protected]>
Signed-off-by: iceseer <[email protected]>
Signed-off-by: iceseer <[email protected]>
Signed-off-by: iceseer <[email protected]>
Signed-off-by: iceseer <[email protected]>
Signed-off-by: iceseer <[email protected]>
Signed-off-by: iceseer <[email protected]>
Signed-off-by: iceseer <[email protected]>
Signed-off-by: iceseer <[email protected]>
@iceseer iceseer force-pushed the fix/kusama_backed_candidates branch from 6b81857 to 7063722 Compare August 14, 2024 09:08
@iceseer iceseer force-pushed the fix/kusama_backed_candidates branch from 74af161 to 59b80b6 Compare August 15, 2024 07:53
Signed-off-by: iceseer <[email protected]>
Signed-off-by: iceseer <[email protected]>
Signed-off-by: iceseer <[email protected]>
…s' into fix/kusama_backed_candidates

Signed-off-by: iceseer <[email protected]>

# Conflicts:
#	core/authority_discovery/query/query_impl.cpp
#	core/network/impl/protocols/protocol_fetch_available_data.hpp
#	core/parachain/availability/recovery/recovery_impl.cpp
#	core/parachain/availability/recovery/recovery_impl.hpp
#	core/parachain/validator/impl/parachain_processor.cpp
@iceseer iceseer changed the title Fix/kusama backed candidates Fix/kusama grid size fixes Sep 17, 2024
Signed-off-by: iceseer <[email protected]>
Signed-off-by: iceseer <[email protected]>
t
Signed-off-by: iceseer <[email protected]>
Signed-off-by: iceseer <[email protected]>
Signed-off-by: iceseer <[email protected]>
Signed-off-by: iceseer <[email protected]>
…andidates

Signed-off-by: iceseer <[email protected]>

# Conflicts:
#	core/log/formatters/optional.hpp
#	core/parachain/approval/approval_distribution.cpp
#	core/parachain/availability/recovery/recovery_impl.cpp
#	core/parachain/validator/impl/parachain_processor.cpp
#	core/parachain/validator/parachain_processor.hpp
@iceseer iceseer force-pushed the fix/kusama_backed_candidates branch 9 times, most recently from 529a475 to a5fda88 Compare September 28, 2024 12:59
@iceseer iceseer marked this pull request as ready for review September 28, 2024 13:04
Signed-off-by: iceseer <[email protected]>
core/parachain/backing/grid.hpp Outdated Show resolved Hide resolved
/// update peers in grid view
const auto &grid_view = *per_session_state->value().grid_view;
BOOST_ASSERT(*our_group < grid_view.size());
const auto &view = grid_view[*our_group];
Copy link
Contributor

Choose a reason for hiding this comment

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

It was grid_view[candidate.group].
candidate.group == our_group as we are backing that candidate.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Мы можем не быть парачейн валидатором и как следствие группы у нас нет. Но мы валидаторы, поэтому мы есть в топологии и должны принимать сообщения от других валидаторов, чтобы формировать блоки с кандидатами.

Comment on lines 29 to 30
std::vector<std::vector<ValidatorIndex>> groups;
groups.emplace_back(count);
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
std::vector<std::vector<ValidatorIndex>> groups;
groups.emplace_back(count);

@xDimon xDimon requested review from xDimon and turuslan October 1, 2024 08:39
@iceseer iceseer enabled auto-merge (squash) October 2, 2024 07:27
@iceseer iceseer merged commit dfa97aa into master Oct 2, 2024
13 checks passed
@iceseer iceseer deleted the fix/kusama_backed_candidates branch October 2, 2024 08:04
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