Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.12 KB | None | 0 0
  1. diff -u coderrr-bitcoin-9376bcb/src\main.cpp bitcoin-mod/src\main.cpp
  2. --- coderrr-bitcoin-9376bcb/src\main.cpp    Mon Jun 27 11:46:58 2011
  3. +++ bitcoin-mod/src\main.cpp    Sat Jul 02 17:50:28 2011
  4. @@ -23,6 +23,7 @@
  5.  CBigNum bnProofOfWorkLimit(~uint256(0) >> 32);
  6.  CBlockIndex* pindexGenesisBlock = NULL;
  7.  int nBestHeight = -1;
  8. +int nMaxHeight = 0;
  9.  CBigNum bnBestChainWork = 0;
  10.  CBigNum bnBestInvalidWork = 0;
  11.  uint256 hashBestChain = 0;
  12. @@ -2437,6 +2438,8 @@
  13.          pfrom->fSuccessfullyConnected = true;
  14.  
  15.          printf("version message: version %d, blocks=%d\n", pfrom->nVersion, pfrom->nStartingHeight);
  16. +
  17. +       nMaxHeight = nMaxHeight < pfrom->nStartingHeight ? pfrom->nStartingHeight : nMaxHeight;
  18.      }
  19.  
  20. diff -u coderrr-bitcoin-9376bcb/src\main.cpp bitcoin-mod/src\main.cpp
  21. --- coderrr-bitcoin-9376bcb/src\main.cpp    Mon Jun 27 11:46:58 2011
  22. +++ bitcoin-mod/src\main.cpp    Sat Jul 02 17:50:28 2011
  23. @@ -23,6 +23,7 @@
  24.  CBigNum bnProofOfWorkLimit(~uint256(0) >> 32);
  25.  CBlockIndex* pindexGenesisBlock = NULL;
  26.  int nBestHeight = -1;
  27. +int nMaxHeight = 0;
  28.  CBigNum bnBestChainWork = 0;
  29.  CBigNum bnBestInvalidWork = 0;
  30.  uint256 hashBestChain = 0;
  31.  
  32.  
  33. diff -u coderrr-bitcoin-9376bcb/src\net.h bitcoin-mod/src\net.h
  34. --- coderrr-bitcoin-9376bcb/src\net.h   Mon Jun 27 11:46:58 2011
  35. +++ bitcoin-mod/src\net.h   Sat Jul 02 17:42:54 2011
  36. @@ -19,6 +19,7 @@
  37.  class CNode;
  38.  class CBlockIndex;
  39.  extern int nBestHeight;
  40. +extern int nMaxHeight;
  41.  extern int nConnectTimeout;
  42.  
  43.  
  44. diff -u coderrr-bitcoin-9376bcb/src\ui.cpp bitcoin-mod/src\ui.cpp
  45. --- coderrr-bitcoin-9376bcb/src\ui.cpp  Mon Jun 27 11:46:58 2011
  46. +++ bitcoin-mod/src\ui.cpp  Sat Jul 02 18:24:21 2011
  47. @@ -1233,7 +1233,7 @@
  48.          strGen = _("(not connected)");
  49.      m_statusBar->SetStatusText(strGen, 1);
  50.  
  51. -    string strStatus = strprintf(_("     %d connections     %d blocks     %d transactions"), vNodes.size(), nBestHeight, nTransactionCount);
  52. +    string strStatus = strprintf(_("   %d connections     %d / %d blocks     %d transactions"), vNodes.size(), nBestHeight, nMaxHeight, nTransactionCount);
  53.      m_statusBar->SetStatusText(strStatus, 2);
  54.  
  55.      // Update receiving address
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement