From b98654b8d96d6e4a3cedc437cf9b492d7176f685 Mon Sep 17 00:00:00 2001 From: eyedeekay Date: Tue, 15 Aug 2023 14:10:26 -0400 Subject: [PATCH] Router: make sure to use subdbs in HFDSMJ --- .../kademlia/HandleFloodfillDatabaseStoreMessageJob.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/router/java/src/net/i2p/router/networkdb/kademlia/HandleFloodfillDatabaseStoreMessageJob.java b/router/java/src/net/i2p/router/networkdb/kademlia/HandleFloodfillDatabaseStoreMessageJob.java index e70620a6fa..3a299be09b 100644 --- a/router/java/src/net/i2p/router/networkdb/kademlia/HandleFloodfillDatabaseStoreMessageJob.java +++ b/router/java/src/net/i2p/router/networkdb/kademlia/HandleFloodfillDatabaseStoreMessageJob.java @@ -125,7 +125,7 @@ else if (compareLeasesetDate.getEarliestLeaseDate() < ls.getEarliestLeaseDate()) //boolean rap = ls.getReceivedAsPublished(); //if (_log.shouldLog(Log.INFO)) // _log.info("oldrap? " + oldrap + " oldrar? " + oldrar + " newrap? " + rap); - LeaseSet match = getContext().netDb().store(key, ls); + LeaseSet match = _facade.store(key, ls); if (match == null) { wasNew = true; } else if (match.getEarliestLeaseDate() < ls.getEarliestLeaseDate()) { @@ -286,7 +286,7 @@ else if (_fromHash.equals(key)) } } if (shouldStore) { - prevNetDb = getContext().netDb().store(key, ri); + prevNetDb = _facade.store(key, ri); wasNew = ((null == prevNetDb) || (prevNetDb.getPublished() < ri.getPublished())); } // Check new routerinfo address against blocklist