Skip to content

Commit

Permalink
change bitcoin#8775 to keep dash codebase improvement, but still back…
Browse files Browse the repository at this point in the history
…port bitcoin#9908
  • Loading branch information
PastaPastaPasta committed Jan 25, 2019
1 parent afdb0a2 commit c70aa60
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/wallet/rpcdump.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -513,13 +513,7 @@ UniValue importwallet(const JSONRPCRequest& request)
file.close();
pwallet->ShowProgress("", 100); // hide progress dialog in GUI

CBlockIndex *pindex = chainActive.Tip();
while (pindex && pindex->pprev && pindex->GetBlockTime() > nTimeBegin - TIMESTAMP_WINDOW)
pindex = pindex->pprev;

pwallet->UpdateTimeFirstKey(nTimeBegin);

CBlockIndex *pindex = chainActive.FindEarliestAtLeast(nTimeBegin - 7200);
CBlockIndex* pindex = chainActive.FindEarliestAtLeast(nTimeBegin - TIMESTAMP_WINDOW);

LogPrintf("Rescanning last %i blocks\n", chainActive.Height() - pindex->nHeight + 1);
pwallet->ScanForWalletTransactions(pindex);
Expand Down

0 comments on commit c70aa60

Please sign in to comment.