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
// range, or if the import result already has an error set, let
1135
1127
// the result stand unmodified. Otherwise replace the result
1136
1128
// with an error message.
1137
-
if (GetImportTimestamp(request, now) - TIMESTAMP_WINDOW > scanFailed->GetBlockTimeMax() || results.at(i).exists("error")) {
1129
+
if (scannedTime <= GetImportTimestamp(request, now) - TIMESTAMP_WINDOW || results.at(i).exists("error")) {
1138
1130
response.push_back(results.at(i));
1139
1131
} else {
1140
1132
UniValue result = UniValue(UniValue::VOBJ);
1141
1133
result.pushKV("success", UniValue(false));
1142
-
result.pushKV("error", JSONRPCError(RPC_MISC_ERROR, strprintf("Failed to rescan before time %d, transactions may be missing.", scanFailed->GetBlockTimeMax() + 1)));
1134
+
result.pushKV("error", JSONRPCError(RPC_MISC_ERROR, strprintf("Failed to rescan before time %d, transactions may be missing.", scannedTime)));
0 commit comments