diff options
author | Alex Auvolat <alex@adnab.me> | 2020-12-11 15:58:21 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2020-12-11 15:58:21 +0100 |
commit | a7d92689e04cbb2e3e8b1be2d967f30349007be7 (patch) | |
tree | 7d09cbc69a1a3129f9b1ec5d5b78cb608960d042 /src/peering | |
parent | 609f0387ca7e04cf1406f10029115f7c09e3a3d9 (diff) | |
download | netapp-a7d92689e04cbb2e3e8b1be2d967f30349007be7.tar.gz netapp-a7d92689e04cbb2e3e8b1be2d967f30349007be7.zip |
tiny basalt change
Diffstat (limited to 'src/peering')
-rw-r--r-- | src/peering/basalt.rs | 2 |
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]); } |