store RCs if valid

pull/1038/head
Jeff Becker 5 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); dht.pendingRouterLookups().Found(owner, R[0].pubkey, R);
return true; return true;
} }
llarp::LogWarn("Unwarranted GRM from ", From, " txid=", txid); // store if valid
return false; for(const auto &rc : R)
{
if(not dht.GetRouter().rcLookupHandler().CheckRC(rc))
return false;
}
return true;
} }
} // namespace dht } // namespace dht
} // namespace llarp } // namespace llarp

Loading…
Cancel
Save