Merge branch 'code-cleanup' of git://github.com/muggenhor/bitcoin
authorGavin Andresen <gavinandresen@gmail.com>
Thu, 1 Sep 2011 15:52:07 +0000 (11:52 -0400)
committerGavin Andresen <gavinandresen@gmail.com>
Thu, 1 Sep 2011 15:52:07 +0000 (11:52 -0400)
1  2 
src/main.cpp
src/makefile.linux-mingw
src/makefile.mingw
src/makefile.osx
src/makefile.unix
src/net.cpp

diff --cc src/main.cpp
@@@ -29,8 -29,8 +29,8 @@@ map<COutPoint, CInPoint> mapNextTx
  
  map<uint256, CBlockIndex*> mapBlockIndex;
  uint256 hashGenesisBlock("0x000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f");
- CBigNum bnProofOfWorkLimit(~uint256(0) >> 32);
+ static CBigNum bnProofOfWorkLimit(~uint256(0) >> 32);
 -const int nTotalBlocksEstimate = 134444; // Conservative estimate of total nr of blocks on main chain
 +const int nTotalBlocksEstimate = 140700; // Conservative estimate of total nr of blocks on main chain
  const int nInitialBlockThreshold = 120; // Regard blocks up until N-threshold as "initial download"
  CBlockIndex* pindexGenesisBlock = NULL;
  int nBestHeight = -1;
@@@ -32,15 -32,36 +32,35 @@@ LIBS= 
   -l ssl \
   -l crypto
  
 -DEFS=-D_MT -DWIN32 -D__WXMSW__ -D_WINDOWS -DNOPCH -DUSE_SSL
 +DEFS=-D_MT -DWIN32 -D__WXMSW__ -D_WINDOWS -DNOPCH -DUSE_SSL -DBOOST_THREAD_USE_LIB
  DEBUGFLAGS=-g -D__WXDEBUG__
  CFLAGS=-O2 -w -Wno-invalid-offsetof -Wformat $(DEBUGFLAGS) $(DEFS) $(INCLUDEPATHS)
- HEADERS=headers.h strlcpy.h serialize.h uint256.h util.h key.h bignum.h base58.h \
-     script.h db.h net.h irc.h keystore.h main.h wallet.h rpc.h uibase.h ui.h noui.h \
-     crypter.h init.h
+ HEADERS = \
+     base58.h \
+     bignum.h \
+     crypter.h \
+     db.h \
+     headers.h \
+     init.h \
+     irc.h \
+     key.h \
+     keystore.h \
+     main.h \
+     net.h \
+     noui.h \
+     protocol.h \
+     rpc.h \
+     script.h \
+     serialize.h \
+     strlcpy.h \
+     ui.h \
+     uibase.h \
+     uint256.h \
+     util.h \
+     wallet.h
  
  ifdef USE_UPNP
 -      INCLUDEPATHS += -I"$(DEPSDIR)/upnpc-exe-win32-20110215"
 -      LIBPATHS += -L"$(DEPSDIR)/upnpc-exe-win32-20110215"
 +      LIBPATHS += -L"$(DEPSDIR)/miniupnpc"
        LIBS += -l miniupnpc -l iphlpapi
        DEFS += -DSTATICLIB -DUSE_UPNP=$(USE_UPNP)
  endif
@@@ -29,16 -29,36 +29,36 @@@ LIBS= 
   -l ssl \
   -l crypto
  
 -DEFS=-DWIN32 -D__WXMSW__ -D_WINDOWS -DNOPCH -DUSE_SSL
 +DEFS=-DWIN32 -D__WXMSW__ -D_WINDOWS -DNOPCH -DUSE_SSL -DBOOST_THREAD_USE_LIB
  DEBUGFLAGS=-g -D__WXDEBUG__
  CFLAGS=-mthreads -O2 -w -Wno-invalid-offsetof -Wformat $(DEBUGFLAGS) $(DEFS) $(INCLUDEPATHS)
- HEADERS=headers.h strlcpy.h serialize.h uint256.h util.h key.h bignum.h base58.h \
-     script.h db.h net.h irc.h keystore.h main.h wallet.h rpc.h uibase.h ui.h noui.h \
-     init.h crypter.h
+ HEADERS = \
+     base58.h \
+     bignum.h \
+     crypter.h \
+     db.h \
+     headers.h \
+     init.h \
+     irc.h \
+     key.h \
+     keystore.h \
+     main.h \
+     net.h \
+     noui.h \
+     protocol.h \
+     rpc.h \
+     script.h \
+     serialize.h \
+     strlcpy.h \
+     ui.h \
+     uibase.h \
+     uint256.h \
+     util.h \
+     wallet.h
  
  ifdef USE_UPNP
 - INCLUDEPATHS += -I"C:\upnpc-exe-win32-20110215"
 - LIBPATHS += -L"C:\upnpc-exe-win32-20110215"
 + INCLUDEPATHS += -I"C:\miniupnpc-1.6-mgw"
 + LIBPATHS += -L"C:\miniupnpc-1.6-mgw"
   LIBS += -l miniupnpc -l iphlpapi
   DEFS += -DSTATICLIB -DUSE_UPNP=$(USE_UPNP)
  endif
Simple merge
Simple merge
diff --cc src/net.cpp
Simple merge