mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 03:52:49 +01:00
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:
parent
6e5d3f1d1f
commit
63dfdd7d42
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user