Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Screenshot: http://i52.tinypic.com/b997oj.jpg
- diff -u -p1 coderrr-bitcoin-9376bcb/src\main.cpp bitcoin-mod/src\main.cpp
- --- coderrr-bitcoin-9376bcb/src\main.cpp Mon Jun 27 11:46:58 2011
- +++ bitcoin-mod/src\main.cpp Sun Jul 03 00:11:37 2011
- @@ -25,2 +25,3 @@ CBlockIndex* pindexGenesisBlock = NULL;
- int nBestHeight = -1;
- +int nMaxHeight = 0;
- CBigNum bnBestChainWork = 0;
- @@ -2439,2 +2440,4 @@ bool ProcessMessage(CNode* pfrom, string
- printf("version message: version %d, blocks=%d\n", pfrom->nVersion, pfrom->nStartingHeight);
- +
- + nMaxHeight = max(nBestHeight, pfrom->nStartingHeight);
- }
- diff -u -p1 coderrr-bitcoin-9376bcb/src\net.h bitcoin-mod/src\net.h
- --- coderrr-bitcoin-9376bcb/src\net.h Mon Jun 27 11:46:58 2011
- +++ bitcoin-mod/src\net.h Sat Jul 02 17:42:54 2011
- @@ -21,2 +21,3 @@ class CBlockIndex;
- extern int nBestHeight;
- +extern int nMaxHeight;
- extern int nConnectTimeout;
- diff -u -p1 coderrr-bitcoin-9376bcb/src\ui.cpp bitcoin-mod/src\ui.cpp
- --- coderrr-bitcoin-9376bcb/src\ui.cpp Mon Jun 27 11:46:58 2011
- +++ bitcoin-mod/src\ui.cpp Sun Jul 03 00:12:27 2011
- @@ -1235,3 +1236,4 @@ void CMainFrame::OnPaintListCtrl(wxPaint
- - string strStatus = strprintf(_(" %d connections %d blocks %d transactions"), vNodes.size(), nBestHeight, nTransactionCount);
- + nMaxHeight = max(nMaxHeight, nBestHeight);
- + string strStatus = strprintf(_(" %d connections %d / %d blocks %d transactions"), vNodes.size(), nBestHeight, nMaxHeight, nTransactionCount);
- m_statusBar->SetStatusText(strStatus, 2);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement