From 119ce01a7849e3de8504abdf42f934d63d3b78e4 Mon Sep 17 00:00:00 2001 From: Zeke Mostov Date: Sat, 20 Apr 2024 22:43:47 -0600 Subject: [PATCH] sort share set members --- src/qos_core/src/protocol/services/reshard.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/qos_core/src/protocol/services/reshard.rs b/src/qos_core/src/protocol/services/reshard.rs index a2ea8c4a..c07b2777 100644 --- a/src/qos_core/src/protocol/services/reshard.rs +++ b/src/qos_core/src/protocol/services/reshard.rs @@ -88,6 +88,8 @@ impl ReshardInput { /// Make sure reshard input is deterministic pub fn deterministic(&mut self) { self.quorum_keys.sort(); + self.new_share_set.members.sort(); + self.old_share_set.members.sort(); } fn validate(&mut self) -> Result<(), ProtocolError> {