make router version member optional on serialization

pull/1075/head
Jeff Becker 4 years ago
parent 9efd796145
commit 4f81b913ef
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -124,7 +124,7 @@ namespace llarp
{
if(not dht.GetRouter()->rcLookupHandler().CheckRC(rc))
return false;
if(txid == 0 and R.size() == 1)
if(txid == 0 and foundRCs.size() == 1)
{
// flood as needed
dht.FloodRCLater(From, rc);

@ -43,7 +43,8 @@ namespace llarp
}
/// gossip message
GotRouterMessage(const RouterContact rc) : IMessage({}), R({rc}), txid(0)
GotRouterMessage(const RouterContact rc)
: IMessage({}), foundRCs({rc}), txid(0)
{
version = LLARP_PROTO_VERSION;
}

Loading…
Cancel
Save