Changeset a3d3eec for router


Ignore:
Timestamp:
Feb 3, 2018 4:43:56 PM (3 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
172f0c9d
Parents:
8250a8e
Message:

log tweaks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/networkdb/kademlia/KademliaNetworkDatabaseFacade.java

    r8250a8e ra3d3eec  
    793793            return "Key does not match leaseSet.destination - " + key.toBase64();
    794794        }
     795        // todo experimental sig types
    795796        if (!leaseSet.verifySignature()) {
    796797            // throws UnsupportedCryptoException
     
    810811            if (_log.shouldLog(Log.WARN))
    811812                _log.warn("Old leaseSet!  not storing it: "
    812                           + leaseSet.getDestination().calculateHash()
     813                          + leaseSet.getDestination().toBase32()
    813814                          + " first exp. " + new Date(earliest)
    814815                          + " last exp. " + new Date(latest),
    815816                          new Exception("Rejecting store"));
    816             return "Expired leaseSet for " + leaseSet.getDestination().calculateHash()
     817            return "Expired leaseSet for " + leaseSet.getDestination().toBase32()
    817818                   + " expired " + DataHelper.formatDuration(age) + " ago";
    818819        }
     
    822823            if (_log.shouldLog(Log.WARN))
    823824                _log.warn("LeaseSet expires too far in the future: "
    824                           + leaseSet.getDestination().calculateHash()
     825                          + leaseSet.getDestination().toBase32()
    825826                          + " expires " + DataHelper.formatDuration(age) + " from now");
    826             return "Future expiring leaseSet for " + leaseSet.getDestination().calculateHash()
     827            return "Future expiring leaseSet for " + leaseSet.getDestination().toBase32()
    827828                   + " expiring in " + DataHelper.formatDuration(age);
    828829        }
     
    855856       
    856857        // spoof / hash collision detection
     858        // todo allow non-exp to overwrite exp
    857859        if (rv != null && !leaseSet.getDestination().equals(rv.getDestination()))
    858860            throw new IllegalArgumentException("LS Hash collision");
     
    906908            return "Key does not match routerInfo.identity";
    907909        }
     910        // todo experimental sig types
    908911        if (!routerInfo.isValid()) {
    909912            // throws UnsupportedCryptoException
     
    10431046       
    10441047        // spoof / hash collision detection
     1048        // todo allow non-exp to overwrite exp
    10451049        if (rv != null && !routerInfo.getIdentity().equals(rv.getIdentity()))
    10461050            throw new IllegalArgumentException("RI Hash collision");
Note: See TracChangeset for help on using the changeset viewer.