From a7d92689e04cbb2e3e8b1be2d967f30349007be7 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Fri, 11 Dec 2020 15:58:21 +0100 Subject: tiny basalt change --- src/peering/basalt.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/peering/basalt.rs b/src/peering/basalt.rs index 4aa34f6..289b411 100644 --- a/src/peering/basalt.rs +++ b/src/peering/basalt.rs @@ -77,7 +77,7 @@ impl Peer { { let mut h5 = hasher.clone(); - h5.update(&format!("{}", self.addr).into_bytes()[..]); + h5.update(&format!("{} {}", self.addr, hex::encode(self.id)).into_bytes()[..]); cost[32..40].copy_from_slice(&h5.finalize()[..8]); } -- cgit v1.2.3