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

statement grid #1891

Merged
merged 4 commits into from
Dec 14, 2023
Merged

statement grid #1891

merged 4 commits into from
Dec 14, 2023

Conversation

turuslan
Copy link
Contributor

@turuslan turuslan commented Dec 4, 2023

Referenced issues

Description of the Change

  • canReceive, sendTo
auto babe_randomness = BabeRepositoryImpl.config().randomness
auto session = ParachainHostImpl.session_info()
auto validators = grid::shuffle(session.validator_groups, babe_randomness)
auto views = grid::makeViews(session.validator_groups, validators, our_index)

views[manifest.group].canReceive(manifest.is_full, from_peer)
views[manifest.group].sendTo(manifest.is_full, [](peer) { send(peer) })

Benefits

Possible Drawbacks

Signed-off-by: turuslan <[email protected]>
@turuslan turuslan requested a review from iceseer December 4, 2023 11:44
core/parachain/backing/chacha.hpp Outdated Show resolved Hide resolved
core/parachain/backing/grid.hpp Show resolved Hide resolved
@turuslan turuslan enabled auto-merge (squash) December 14, 2023 09:22
@turuslan turuslan merged commit 6290884 into master Dec 14, 2023
10 checks passed
@turuslan turuslan deleted the para/grid branch December 14, 2023 09:30
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.

3 participants