From 0949be931abbeb39e53ed6c3b10cb77ef60f2911 Mon Sep 17 00:00:00 2001 From: Antoni Spaanderman <56turtle56@gmail.com> Date: Sun, 9 Jun 2024 00:09:00 +0200 Subject: [PATCH] fix ServiceFlags::remove --- bitcoin/src/p2p/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitcoin/src/p2p/mod.rs b/bitcoin/src/p2p/mod.rs index a7bedce1f..8b7f737e1 100644 --- a/bitcoin/src/p2p/mod.rs +++ b/bitcoin/src/p2p/mod.rs @@ -110,7 +110,7 @@ impl ServiceFlags { /// /// Returns itself. pub fn remove(&mut self, other: ServiceFlags) -> ServiceFlags { - self.0 ^= other.0; + self.0 &= !other.0; *self }