File tree Expand file tree Collapse file tree
node/src/reactor/main_reactor Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ lint-smart-contracts:
131131
132132.PHONY : audit-rs
133133audit-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
137137audit : audit-rs
Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments