Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.41 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.  
  13.  
  14. diff -u coderrr-bitcoin-9376bcb/src\net.h bitcoin-mod/src\net.h
  15. --- coderrr-bitcoin-9376bcb/src\net.h   Mon Jun 27 11:46:58 2011
  16. +++ bitcoin-mod/src\net.h   Sat Jul 02 17:42:54 2011
  17. @@ -19,6 +19,7 @@
  18.  class CNode;
  19.  class CBlockIndex;
  20.  extern int nBestHeight;
  21. +extern int nMaxHeight;
  22.  extern int nConnectTimeout;
  23.  
  24.  
  25. diff -u coderrr-bitcoin-9376bcb/src\ui.cpp bitcoin-mod/src\ui.cpp
  26. --- coderrr-bitcoin-9376bcb/src\ui.cpp  Mon Jun 27 11:46:58 2011
  27. +++ bitcoin-mod/src\ui.cpp  Sat Jul 02 18:24:21 2011
  28. @@ -1233,7 +1233,7 @@
  29.          strGen = _("(not connected)");
  30.      m_statusBar->SetStatusText(strGen, 1);
  31.  
  32. -    string strStatus = strprintf(_("     %d connections     %d blocks     %d transactions"), vNodes.size(), nBestHeight, nTransactionCount);
  33. +    string strStatus = strprintf(_("   %d connections     %d / %d blocks     %d transactions"), vNodes.size(), nBestHeight, nMaxHeight, nTransactionCount);
  34.      m_statusBar->SetStatusText(strStatus, 2);
  35.  
  36.      // Update receiving address
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement