/** * Queries the DHT for the <code>k</code> peers closest to a given key. * This method blocks. * @see ClosestNodesLookupTask */ private List<Destination> getClosestNodes(Hash key) throws InterruptedException { bucketManager.updateLastLookupTime(key); ClosestNodesLookupTask lookupTask = new ClosestNodesLookupTask(key, sendQueue, i2pReceiver, bucketManager); return lookupTask.call(); }