@@ -497,7 +497,7 @@ UniValue importwallet(const JSONRPCRequest& request)
497497 pwalletMain->ShowProgress (" " , 100 ); // hide progress dialog in GUI
498498
499499 CBlockIndex *pindex = chainActive.Tip ();
500- while (pindex && pindex->pprev && pindex->GetBlockTime () > nTimeBegin - 7200 )
500+ while (pindex && pindex->pprev && pindex->GetBlockTime () > nTimeBegin - TIMESTAMP_WINDOW )
501501 pindex = pindex->pprev ;
502502
503503 pwalletMain->UpdateTimeFirstKey (nTimeBegin);
@@ -1073,7 +1073,7 @@ UniValue importmulti(const JSONRPCRequest& mainRequest)
10731073 }
10741074
10751075 if (fRescan && fRunScan && requests.size ()) {
1076- CBlockIndex* pindex = nLowestTimestamp > minimumTimestamp ? chainActive.FindEarliestAtLeast (std::max<int64_t >(nLowestTimestamp - 7200 , 0 )) : chainActive.Genesis ();
1076+ CBlockIndex* pindex = nLowestTimestamp > minimumTimestamp ? chainActive.FindEarliestAtLeast (std::max<int64_t >(nLowestTimestamp - TIMESTAMP_WINDOW , 0 )) : chainActive.Genesis ();
10771077 CBlockIndex* scannedRange = nullptr ;
10781078 if (pindex) {
10791079 scannedRange = pwalletMain->ScanForWalletTransactions (pindex, true );
@@ -1090,7 +1090,7 @@ UniValue importmulti(const JSONRPCRequest& mainRequest)
10901090 // range, or if the import result already has an error set, let
10911091 // the result stand unmodified. Otherwise replace the result
10921092 // with an error message.
1093- if (GetImportTimestamp (request, now) - 7200 >= scannedRange->GetBlockTimeMax () || results.at (i).exists (" error" )) {
1093+ if (GetImportTimestamp (request, now) - TIMESTAMP_WINDOW >= scannedRange->GetBlockTimeMax () || results.at (i).exists (" error" )) {
10941094 response.push_back (results.at (i));
10951095 } else {
10961096 UniValue result = UniValue (UniValue::VOBJ);
0 commit comments