Merge branch '0.4.x' into 0.5.x
authorLuke Dashjr <luke-jr+git@utopios.org>
Sun, 22 Apr 2012 14:05:43 +0000 (10:05 -0400)
committerLuke Dashjr <luke-jr+git@utopios.org>
Sun, 22 Apr 2012 14:05:43 +0000 (10:05 -0400)
Conflicts:
src/main.cpp

12 files changed:
1  2 
src/base58.h
src/bitcoinrpc.cpp
src/crypter.cpp
src/key.h
src/main.cpp
src/main.h
src/net.cpp
src/net.h
src/protocol.cpp
src/util.cpp
src/wallet.cpp
src/wallet.h

diff --cc src/base58.h
Simple merge
Simple merge
diff --cc src/crypter.cpp
Simple merge
diff --cc src/key.h
Simple merge
diff --cc src/main.cpp
@@@ -1482,10 -1462,10 +1482,10 @@@ bool CBlock::CheckBlock() cons
  
      // First transaction must be coinbase, the rest must not be
      if (vtx.empty() || !vtx[0].IsCoinBase())
 -        return error("CheckBlock() : first tx is not coinbase");
 +        return DoS(100, error("CheckBlock() : first tx is not coinbase"));
-     for (int i = 1; i < vtx.size(); i++)
+     for (unsigned int i = 1; i < vtx.size(); i++)
          if (vtx[i].IsCoinBase())
 -            return error("CheckBlock() : more than one coinbase");
 +            return DoS(100, error("CheckBlock() : more than one coinbase"));
  
      // Check transactions
      BOOST_FOREACH(const CTransaction& tx, vtx)
diff --cc src/main.h
Simple merge
diff --cc src/net.cpp
Simple merge
diff --cc src/net.h
Simple merge
Simple merge
diff --cc src/util.cpp
Simple merge
diff --cc src/wallet.cpp
Simple merge
diff --cc src/wallet.h
Simple merge