-
Notifications
You must be signed in to change notification settings - Fork 34
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
Conversation
Signed-off-by: turuslan <[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]>
Signed-off-by: iceseer <[email protected]>
Signed-off-by: iceseer <[email protected]>
Signed-off-by: iceseer <[email protected]>
Signed-off-by: iceseer <[email protected]>
6b81857
to
7063722
Compare
Signed-off-by: iceseer <[email protected]>
74af161
to
59b80b6
Compare
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
Signed-off-by: iceseer <[email protected]>
Signed-off-by: iceseer <[email protected]>
Signed-off-by: iceseer <[email protected]>
300c96c
to
ff86a15
Compare
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
529a475
to
a5fda88
Compare
Signed-off-by: iceseer <[email protected]>
a5fda88
to
97ed05a
Compare
/// 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]; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Мы можем не быть парачейн валидатором и как следствие группы у нас нет. Но мы валидаторы, поэтому мы есть в топологии и должны принимать сообщения от других валидаторов, чтобы формировать блоки с кандидатами.
std::vector<std::vector<ValidatorIndex>> groups; | ||
groups.emplace_back(count); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
std::vector<std::vector<ValidatorIndex>> groups; | |
groups.emplace_back(count); |
Signed-off-by: iceseer <[email protected]>
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: