aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-12-11 15:58:21 +0100
committerAlex Auvolat <alex@adnab.me>2020-12-11 15:58:21 +0100
commita7d92689e04cbb2e3e8b1be2d967f30349007be7 (patch)
tree7d09cbc69a1a3129f9b1ec5d5b78cb608960d042 /src
parent609f0387ca7e04cf1406f10029115f7c09e3a3d9 (diff)
downloadnetapp-a7d92689e04cbb2e3e8b1be2d967f30349007be7.tar.gz
netapp-a7d92689e04cbb2e3e8b1be2d967f30349007be7.zip
tiny basalt change
Diffstat (limited to 'src')
-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]);
}