|
|
@ -840,7 +840,12 @@ namespace data |
|
|
|
LogPrint (eLogError, "NetDb: Database store message is too long ", len); |
|
|
|
LogPrint (eLogError, "NetDb: Database store message is too long ", len); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
if (!m->from) // unsolicited LS must be received directly
|
|
|
|
if (!context.IsFloodfill ()) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
LogPrint (eLogInfo, "NetDb: Not Floodfill, LeaseSet store request ignored for ", ident.ToBase32()); |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
else if (!m->from) // unsolicited LS must be received directly
|
|
|
|
{ |
|
|
|
{ |
|
|
|
if (storeType == NETDB_STORE_TYPE_LEASESET) // 1
|
|
|
|
if (storeType == NETDB_STORE_TYPE_LEASESET) // 1
|
|
|
|
{ |
|
|
|
{ |
|
|
|