daily pastebin goal
33%
SHARE
TWEET

Untitled

a guest Jun 19th, 2017 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --- /downloads/svn/bitcoin/trunk/db.cpp 2010-09-19 12:19:39.000000000 +0000
  2. +++ /downloads/git/bitcoin-git/db.cpp   2010-10-06 03:17:36.000000000 +0000
  3. @@ -465,7 +465,7 @@ bool CTxDB::LoadBlockIndex()
  4.      CBlockIndex* pindexFork = NULL;
  5.      for (CBlockIndex* pindex = pindexBest; pindex && pindex->pprev; pindex = pindex->pprev)
  6.      {
  7. -        if (pindex->nHeight < 74000 && !mapArgs.count("-checkblocks"))
  8. +        if (pindex->nHeight < nBestHeight-2500 && !mapArgs.count("-checkblocks"))
  9.              break;
  10.          CBlock block;
  11.          if (!block.ReadFromDisk(pindex))
  12. @@ -591,6 +591,7 @@ bool CWalletDB::LoadWallet()
  13.      //// todo: shouldn't we catch exceptions and try to recover and continue?
  14.      CRITICAL_BLOCK(cs_mapKeys)
  15.      CRITICAL_BLOCK(cs_mapWallet)
  16. +    CRITICAL_BLOCK(cs_mapMonitored)
  17.      {
  18.          // Get cursor
  19.          Dbc* pcursor = GetCursor();
  20. @@ -619,6 +620,18 @@ bool CWalletDB::LoadWallet()
  21.                  ssKey >> strAddress;
  22.                  ssValue >> mapAddressBook[strAddress];
  23.              }
  24. +            else if (strType == "monitoraddress")
  25. +            {
  26. +                string strAddress;
  27. +                ssKey >> strAddress;
  28. +                ssValue >> mapMonitorAddress[strAddress];
  29. +            }
  30. +            else if (strType == "monitorblocks")
  31. +            {
  32. +                string url;
  33. +                ssKey >> url;
  34. +                ssValue >> mapMonitorBlocks[url];
  35. +            }
  36.              else if (strType == "tx")
  37.              {
  38.                  uint256 hash;
RAW Paste Data
Top