Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: linera-io/linera-protocol
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 640108cc88ce73efcbf81647e60491db43f7815f
Choose a base ref
..
head repository: linera-io/linera-protocol
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 354f2bb447deec16d0365a1712221609e5cef4b7
Choose a head ref
Showing with 4 additions and 6 deletions.
  1. +4 −6 linera-core/src/chain_worker/state/mod.rs
10 changes: 4 additions & 6 deletions linera-core/src/chain_worker/state/mod.rs
Original file line number Diff line number Diff line change
@@ -460,13 +460,11 @@ where
let open_chain_message_ids =
open_chain_message_indices.map(|index| block.message_id(index as u32));
let new_chain_ids = open_chain_message_ids.map(ChainId::child);
let mut tracked_chains = tracked_chains
.write()
.expect("Panics should not happen while holding a lock to `tracked_chains`");

for new_chain_id in new_chain_ids {
tracked_chains.insert(new_chain_id);
}
tracked_chains
.write()
.expect("Panics should not happen while holding a lock to `tracked_chains`")
.extend(new_chain_ids);
}
}