Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix(net): check if the node has all needed fields
Browse files Browse the repository at this point in the history
Fixes ##5766
  • Loading branch information
310552025atNYCU authored and anthonybilinski committed Jan 20, 2020
1 parent cf67237 commit bdb3b61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/net/bootstrapnodeupdater.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit bdb3b61

Please sign in to comment.