From: Evgenii P Date: Tue, 15 Dec 2020 15:40:07 +0000 (+0700) Subject: Take ID into account in SignersContainerKey's PartialEq impl X-Git-Tag: v0.2.0~16^2 X-Git-Url: http://internal-gitweb-vhost/%22https:/parse/scripts/database/-script/-debug/struct.Decoder.html?a=commitdiff_plain;h=09730c0898b774c0d7cac6cb8f5d681fdf270562;p=bdk Take ID into account in SignersContainerKey's PartialEq impl --- diff --git a/src/wallet/signer.rs b/src/wallet/signer.rs index f7d7790d..6521e2b0 100644 --- a/src/wallet/signer.rs +++ b/src/wallet/signer.rs @@ -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 } }