@@ -148,12 +148,12 @@ use crate::transaction::special_transaction::quorum_commitment::QuorumEntry;
148148 pub struct QuorumCommitmentHash ( sha256d:: Hash ) ;
149149
150150 pub struct Sha256dHash ( sha256d:: Hash ) ;
151-
151+ pub struct QuorumOrderingHash ( sha256d :: Hash ) ;
152152 }
153153
154154 hash_newtype_no_ord ! {
155155 pub struct ScoreHash ( sha256:: Hash ) ;
156- pub struct QuorumOrderingHash ( sha256d :: Hash ) ;
156+
157157 }
158158
159159impl Ord for ScoreHash {
@@ -168,29 +168,29 @@ impl Ord for ScoreHash {
168168 }
169169}
170170
171- impl Ord for QuorumOrderingHash {
172- fn cmp ( & self , other : & Self ) -> Ordering {
173- let mut self_bytes = self . 0 . to_byte_array ( ) ;
174- let mut other_bytes = other. 0 . to_byte_array ( ) ;
175-
176- self_bytes. reverse ( ) ;
177- other_bytes. reverse ( ) ;
178-
179- self_bytes. cmp ( & other_bytes)
180- }
181- }
171+ // impl Ord for QuorumOrderingHash {
172+ // fn cmp(&self, other: &Self) -> Ordering {
173+ // let mut self_bytes = self.0.to_byte_array();
174+ // let mut other_bytes = other.0.to_byte_array();
175+ //
176+ // self_bytes.reverse();
177+ // other_bytes.reverse();
178+ //
179+ // self_bytes.cmp(&other_bytes)
180+ // }
181+ // }
182182
183183impl PartialOrd for ScoreHash {
184184 fn partial_cmp ( & self , other : & Self ) -> Option < Ordering > {
185185 Some ( self . cmp ( other) )
186186 }
187187}
188188
189- impl PartialOrd for QuorumOrderingHash {
190- fn partial_cmp ( & self , other : & Self ) -> Option < Ordering > {
191- Some ( self . cmp ( other) )
192- }
193- }
189+ // impl PartialOrd for QuorumOrderingHash {
190+ // fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
191+ // Some(self.cmp(other))
192+ // }
193+ // }
194194
195195
196196 /// A hash used to identify a quorum
@@ -305,7 +305,7 @@ impl PartialOrd for ScoreHash {
305305 /// * A hashed score derived from the input values.
306306 pub fn create ( quorum : & QuorumEntry , request_id : & QuorumSigningRequestId ) -> Self {
307307 let mut bytes = vec ! [ quorum. llmq_type as u8 ] ;
308- bytes. extend_from_slice ( quorum. quorum_hash . reverse ( ) . as_byte_array ( ) ) ;
308+ bytes. extend_from_slice ( quorum. quorum_hash . as_byte_array ( ) ) ;
309309 bytes. extend_from_slice ( request_id. as_byte_array ( ) ) ;
310310 Self :: hash ( bytes. as_slice ( ) )
311311 }
0 commit comments