Skip to content

Commit 9094623

Browse files
authored
Merge branch 'dev' into update-2.2-changelogs
2 parents 087833e + 0d9844f commit 9094623

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ lint-smart-contracts:
131131

132132
.PHONY: audit-rs
133133
audit-rs:
134-
$(CARGO) audit --ignore RUSTSEC-2024-0437 --ignore RUSTSEC-2025-0022 --ignore RUSTSEC-2025-0055 --ignore RUSTSEC-2026-0001 --ignore RUSTSEC-2026-0007
134+
$(CARGO) audit --ignore RUSTSEC-2024-0437 --ignore RUSTSEC-2025-0022 --ignore RUSTSEC-2025-0055 --ignore RUSTSEC-2026-0001 --ignore RUSTSEC-2026-0007 --ignore RUSTSEC-2026-0049 --ignore RUSTSEC-2026-0068 --ignore RUSTSEC-2026-0067
135135

136136
.PHONY: audit
137137
audit: audit-rs

node/src/reactor/main_reactor/validate.rs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,24 @@ impl MainReactor {
148148
return Ok(None);
149149
}
150150

151+
// If the node was validating in the previous era there is a possibility that it didn't get
152+
// a chance to apply it's finality signature to the last (or some of the last)
153+
// blocks of that era. If that's true - it it might try to do that and for that it
154+
// needs to have the validator matrix updated with appropriate era data.
155+
// We stop saturating the validator matrix before we get to latest era, because there might
156+
// have been a chainspec override of the validators during activation.
157+
let number_of_switch_blocks = recent_switch_block_headers.len();
158+
for i in 0..(number_of_switch_blocks - 1) {
159+
if let Some(block) = recent_switch_block_headers.get(i) {
160+
if let Some(validator_weights) = block.next_era_validator_weights() {
161+
self.validator_matrix.register_validator_weights(
162+
block.era_id().successor(),
163+
validator_weights.clone(),
164+
);
165+
}
166+
}
167+
}
168+
151169
if let HighestOrphanedBlockResult::Orphan(highest_orphaned_block_header) =
152170
self.storage.get_highest_orphaned_block_header()
153171
{

0 commit comments

Comments
 (0)