fix: workaround for buggy cppcheck in masternode/utils

It shows this error:
```
src/masternode/utils.cpp:0:0: warning: Internal Error. MathLib::toLongNumber: input was not completely consumed: 5s [cppcheckError]

Advice not applicable in this specific case? Add an exception by updating
IGNORED_WARNINGS in test/lint/lint-cppcheck-dash.sh
```

It doesn't seems as error in our code, but I don't like this warning
This commit is contained in:
Konstantin Akimov 2024-07-08 20:31:18 +07:00
parent 6e5d3f1d1f
commit 63dfdd7d42
No known key found for this signature in database
GPG Key ID: 2176C4A5D01EA524

View File

@ -67,7 +67,7 @@ void CMasternodeUtils::DoMaintenance(CConnman& connman, CDeterministicMNManager&
if (pnode->IsInboundConn()) {
return;
}
} else if (GetTime<std::chrono::seconds>() - pnode->m_connected < 5s) {
} else if (GetTime<std::chrono::seconds>() - pnode->m_connected < PROBE_WAIT_INTERVAL) {
// non-verified, give it some time to verify itself
return;
} else if (pnode->qwatch) {