Changeset 7c928f9 for router


Ignore:
Timestamp:
Dec 1, 2018 6:31:58 PM (19 months ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
e691245
Parents:
9efa0ea
Message:

Router: Only flood LS2 to router that supports it
Use same version check in StoreJob? for flooding

File:
1 edited

Legend:

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

    r9efa0ea r7c928f9  
    235235        }
    236236        int flooded = 0;
     237        boolean isls2 = ds.isLeaseSet() && ds.getType() != DatabaseEntry.KEY_TYPE_LEASESET;
    237238        for (int i = 0; i < peers.size(); i++) {
    238239            Hash peer = peers.get(i);
     
    246247                continue;
    247248            if (peer.equals(_context.routerHash()))
     249                continue;
     250            // min version checks
     251            if (isls2 && !StoreJob.shouldStoreLS2To(target))
     252                continue;
     253            if (!StoreJob.shouldStoreTo(target))
    248254                continue;
    249255            DatabaseStoreMessage msg = new DatabaseStoreMessage(_context);
Note: See TracChangeset for help on using the changeset viewer.