Skip to content

Commit 3471777

Browse files
authored
Update signatures to make sure they are sorted by guardian index (#2778)
1 parent 870a13d commit 3471777

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

apps/quorum/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/quorum/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "quorum"
3-
version = "0.1.1"
3+
version = "0.1.2"
44
edition = "2021"
55

66
[dependencies]

apps/quorum/src/api.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ async fn handle_observation(
141141
.and_modify(|sigs| {
142142
if sigs.iter().all(|sig| sig.index != new_signature.index) {
143143
sigs.push(new_signature);
144+
sigs.sort_by(|a, b| a.index.cmp(&b.index));
144145
}
145146
})
146147
.or_insert_with(|| vec![new_signature])

0 commit comments

Comments
 (0)