You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
strErrorMessage = strprintf("%s, Allow data type found but height is greater than allowed data start height %d.", strErrorMessage, iAllowed->second.nStartHeight);
58
+
if (iAllowed->second.nStartHeight > nHeight) {
59
+
strErrorMessage = strprintf("%sAllow data type found but height (%d) is greater than allowed data start height %d.\n", strErrorMessage, nHeight, iAllowed->second.nStartHeight);
60
60
iAllowed++;
61
61
continue;
62
62
}
63
-
if (iAllowed->second.nExpireTime >= nHeight && iAllowed->second.nExpireTime != 0) {
64
-
strErrorMessage = strprintf("%s, Allow data type found but expired %d.", strErrorMessage, iAllowed->second.nExpireTime);
63
+
if (nHeight > iAllowed->second.nExpireTime && iAllowed->second.nExpireTime != 0) {
64
+
strErrorMessage = strprintf("%sAllow data type found but expired %d.\n", strErrorMessage, iAllowed->second.nExpireTime);
65
65
iAllowed++;
66
66
continue;
67
67
}
68
-
if (nSlots <= iAllowed->second.nMaximumSlots) {
69
-
strErrorMessage = strprintf("%s, Allow data type found but too many slots (%d) used. Max slots = %d", strErrorMessage, nSlots, iAllowed->second.nMaximumSlots);
68
+
if (nSlots > iAllowed->second.nMaximumSlots) {
69
+
strErrorMessage = strprintf("%sAllow data type found but too many slots (%d) used. Max slots = %d\n", strErrorMessage, nSlots, iAllowed->second.nMaximumSlots);
70
70
iAllowed++;
71
71
continue;
72
72
}
73
-
// Passes all checks so it is a valid data record salt.
73
+
LogPrintf("%s -- Salt %s passed all checks. Valid data record salt\n", __func__, strSalt);
74
74
returntrue;
75
75
}
76
-
strErrorMessage = strprintf("%s, Invalid salt. Allow data type salt not found in allowed data map.", strErrorMessage);
76
+
strErrorMessage = strprintf("%sInvalid salt (%s). Allow data type salt not found in allowed data map.", strErrorMessage, vSplit[0]);
0 commit comments