[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [metrics-web/master] Make sure fingerprints and digests are lower-case.
commit b8067f823c87bfc8c8a4af936922a9d34ee85bb2
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
Date: Thu Mar 22 10:00:18 2012 +0100
Make sure fingerprints and digests are lower-case.
---
src/org/torproject/ernie/cron/ArchiveReader.java | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/src/org/torproject/ernie/cron/ArchiveReader.java b/src/org/torproject/ernie/cron/ArchiveReader.java
index 5703661..4befe51 100644
--- a/src/org/torproject/ernie/cron/ArchiveReader.java
+++ b/src/org/torproject/ernie/cron/ArchiveReader.java
@@ -109,12 +109,14 @@ public class ArchiveReader {
for (NetworkStatusEntry statusEntry :
consensus.getStatusEntries().values()) {
this.rddi.addStatusEntry(consensus.getValidAfterMillis(),
- statusEntry.getNickname(), statusEntry.getFingerprint(),
- statusEntry.getDescriptor(), statusEntry.getPublishedMillis(),
- statusEntry.getAddress(), statusEntry.getOrPort(),
- statusEntry.getDirPort(), statusEntry.getFlags(),
- statusEntry.getVersion(), statusEntry.getBandwidth(),
- statusEntry.getPortList(), statusEntry.getStatusEntryBytes());
+ statusEntry.getNickname(),
+ statusEntry.getFingerprint().toLowerCase(),
+ statusEntry.getDescriptor().toLowerCase(),
+ statusEntry.getPublishedMillis(), statusEntry.getAddress(),
+ statusEntry.getOrPort(), statusEntry.getDirPort(),
+ statusEntry.getFlags(), statusEntry.getVersion(),
+ statusEntry.getBandwidth(), statusEntry.getPortList(),
+ statusEntry.getStatusEntryBytes());
try {
this.bsfh.addHashedRelay(DigestUtils.shaHex(Hex.decodeHex(
statusEntry.getFingerprint().toCharArray())).toUpperCase());
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits