Browse Source

fix(net): check if the node has all needed fields

Fixes ##5766
reviewable/pr5961/r1
accelsao 6 years ago committed by Anthony Bilinski
parent
commit
bdb3b61ee0
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C
  1. 2
      src/net/bootstrapnodeupdater.cpp

2
src/net/bootstrapnodeupdater.cpp

@ -117,7 +117,7 @@ void BootstrapNodeUpdater::jsonNodeToDhtServer(const QJsonObject& node, QList<Dh @@ -117,7 +117,7 @@ void BootstrapNodeUpdater::jsonNodeToDhtServer(const QJsonObject& node, QList<Dh
// first check if the node in question has all needed fields
bool found = true;
for (const auto& key : NodeFields::neededFields) {
found |= node.contains(key);
found &= node.contains(key);
}
if (!found) {

Loading…
Cancel
Save