]> Untitled Git - bdk/commitdiff
Take ID into account in SignersContainerKey's PartialEq impl
authorEvgenii P <eupn@protonmail.com>
Tue, 15 Dec 2020 15:40:07 +0000 (22:40 +0700)
committerEvgenii P <eupn@protonmail.com>
Tue, 15 Dec 2020 15:40:07 +0000 (22:40 +0700)
src/wallet/signer.rs

index f7d7790d1ff4244de81cdd04286d6403e73f7a99..6521e2b07c1f31e7c4d8df4bd382ce7aec5a7629 100644 (file)
@@ -531,7 +531,7 @@ impl Ord for SignersContainerKey {
 
 impl PartialEq for SignersContainerKey {
     fn eq(&self, other: &Self) -> bool {
-        self.ordering == other.ordering
+        self.id == other.id && self.ordering == other.ordering
     }
 }