Cleanup, define specialist for network specific relays, remove some dead code.

This commit is contained in:
Adam Ierymenko 2025-07-11 10:48:12 -04:00
parent 5fb8d2aa37
commit 697011df7b
No known key found for this signature in database
GPG key ID: C8877CF2D7A5D7F3
3 changed files with 61 additions and 83 deletions

View file

@ -300,16 +300,6 @@ void Multicaster::send(void* tPtr, int64_t now, const SharedPtr<Network>& networ
}
}
std::vector<Address> anchors(network->config().anchors());
for (std::vector<Address>::const_iterator a(anchors.begin()); a != anchors.end(); ++a) {
if (*a != RR->identity.address()) {
explicitGatherPeers[numExplicitGatherPeers++] = *a;
if (numExplicitGatherPeers == 16) {
break;
}
}
}
for (unsigned int k = 0; k < numExplicitGatherPeers; ++k) {
const CertificateOfMembership* com = (network) ? ((network->config().com) ? &(network->config().com) : (const CertificateOfMembership*)0) : (const CertificateOfMembership*)0;
Packet outp(explicitGatherPeers[k], RR->identity.address(), Packet::VERB_MULTICAST_GATHER);