Skip to content

Commit

Permalink
fixup!
Browse files Browse the repository at this point in the history
Signed-off-by: iceseer <iceseer@gmail.com>
  • Loading branch information
iceseer committed Apr 15, 2024
1 parent 43371a6 commit 8e89fdf
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions core/parachain/validator/impl/parachain_processor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -805,11 +805,12 @@ namespace kagome::parachain {
grid::makeViews(session_info.validator_groups,
session_info.active_validator_indices,
validator_index);
Groups g{session_info.validator_groups,
minimum_backing_votes};
return RefCache<SessionIndex, PerSessionState>::RefObj(
PerSessionState{
.session_info = std::move(session_info),
.groups = Groups{session_info.validator_groups,
minimum_backing_votes},
.groups = std::move(g),
.grid_view = grid_view,
});
});
Expand Down Expand Up @@ -874,8 +875,8 @@ namespace kagome::parachain {

std::unordered_map<primitives::AuthorityDiscoveryId, ValidatorIndex>
authority_lookup;
for (ValidatorIndex v = 0; v < session_info->discovery_keys.size(); ++v) {
authority_lookup[session_info->discovery_keys[v]] = v;
for (ValidatorIndex v = 0; v < per_session_state->value().session_info.discovery_keys.size(); ++v) {
authority_lookup[per_session_state->value().session_info.discovery_keys[v]] = v;
}

std::optional<StatementStore> statement_store;
Expand Down Expand Up @@ -4043,9 +4044,9 @@ namespace kagome::parachain {
const CandidateHash candidate_hash =
candidateHashFrom(getPayload(statement));
SL_TRACE(logger_,
"Sharing statement. (relay parent={}, candidate hash={})",
"Sharing statement. (relay parent={}, candidate hash={}, our_index={}, statement_ix={})",
relay_parent,
candidate_hash);
candidate_hash, *per_relay_parent.our_index, statement.payload.ix);

BOOST_ASSERT(per_relay_parent.our_index);

Expand Down

0 comments on commit 8e89fdf

Please sign in to comment.