Initialize firstNodeId

This commit is contained in:
UdjinM6 2021-06-23 11:15:12 +03:00
parent 4aa8689a15
commit 69a72ea5d5
No known key found for this signature in database
GPG Key ID: 83592BD1400D58D9

View File

@ -386,7 +386,7 @@ std::set<NodeId> BatchVerifyMessageSigs(CDKGSession& session, const std::vector<
}
// are all messages from the same node?
NodeId firstNodeId;
NodeId firstNodeId{-1};
first = true;
bool nodeIdsAllSame = true;
for (auto it = messages.begin(); it != messages.end(); ++it) {