store RCs if valid

pull/1038/head
Jeff Becker 4 years ago
parent 495ad6d566
commit 0526fef37b
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -116,8 +116,13 @@ namespace llarp
dht.pendingRouterLookups().Found(owner, R[0].pubkey, R);
return true;
}
llarp::LogWarn("Unwarranted GRM from ", From, " txid=", txid);
return false;
// store if valid
for(const auto &rc : R)
{
if(not dht.GetRouter().rcLookupHandler().CheckRC(rc))
return false;
}
return true;
}
} // namespace dht
} // namespace llarp

Loading…
Cancel
Save