aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/peering/basalt.rs2
1 files changed, 1 insertions, 1 deletions
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]);
}