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 c5e9cdb
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions core/parachain/validator/impl/parachain_processor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -805,11 +805,11 @@ 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 +874,11 @@ 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 @@ -4042,10 +4045,13 @@ namespace kagome::parachain {
const SignedFullStatementWithPVD &statement) {
const CandidateHash candidate_hash =
candidateHashFrom(getPayload(statement));
SL_TRACE(logger_,
"Sharing statement. (relay parent={}, candidate hash={})",
relay_parent,
candidate_hash);
SL_TRACE(
logger_,
"Sharing statement. (relay parent={}, candidate hash={}, our_index={}, statement_ix={})",
relay_parent,
candidate_hash,
*per_relay_parent.our_index,
statement.payload.ix);

BOOST_ASSERT(per_relay_parent.our_index);

Expand Down

0 comments on commit c5e9cdb

Please sign in to comment.