mirror of https://github.com/oxen-io/lokinet
publish introsets on nearest routers
fetch introset from random routers
This commit is contained in:
parent
872a8d8045
commit
0900ab88d1
|
@ -602,7 +602,10 @@ namespace llarp
|
|||
bool
|
||||
Endpoint::PublishIntroSet(const EncryptedIntroSet& introset, AbstractRouter* r)
|
||||
{
|
||||
const auto paths = GetManyPathsWithUniqueEndpoints(this, llarp::dht::IntroSetRelayRedundancy);
|
||||
const auto paths = GetManyPathsWithUniqueEndpoints(
|
||||
this,
|
||||
llarp::dht::IntroSetRelayRedundancy,
|
||||
dht::Key_t{introset.derivedSigningKey.as_array()});
|
||||
|
||||
if (paths.size() != llarp::dht::IntroSetRelayRedundancy)
|
||||
{
|
||||
|
@ -1448,7 +1451,7 @@ namespace llarp
|
|||
if (not m_IntrosetLookupFilter.Insert(remote))
|
||||
return true;
|
||||
|
||||
const auto paths = GetManyPathsWithUniqueEndpoints(this, NumParallelLookups, remote.ToKey());
|
||||
const auto paths = GetManyPathsWithUniqueEndpoints(this, NumParallelLookups);
|
||||
|
||||
using namespace std::placeholders;
|
||||
const dht::Key_t location = remote.ToKey();
|
||||
|
|
Loading…
Reference in New Issue