Skip to content

Commit

Permalink
minor cleanup: include orders, end comments etc.
Browse files Browse the repository at this point in the history
- no code changes
  • Loading branch information
Philip Kaufmann committed Oct 31, 2014
1 parent 8d2396c commit 771d500
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 24 deletions.
8 changes: 4 additions & 4 deletions src/Makefile.test.include
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ BITCOIN_TESTS =\
test/bloom_tests.cpp \
test/checkblock_tests.cpp \
test/Checkpoints_tests.cpp \
test/compress_tests.cpp \
test/coins_tests.cpp \
test/compress_tests.cpp \
test/crypto_tests.cpp \
test/DoS_tests.cpp \
test/getarg_tests.cpp \
Expand All @@ -58,17 +58,17 @@ BITCOIN_TESTS =\
test/rpc_tests.cpp \
test/script_P2SH_tests.cpp \
test/script_tests.cpp \
test/scriptnum_tests.cpp \
test/serialize_tests.cpp \
test/sighash_tests.cpp \
test/sigopcount_tests.cpp \
test/skiplist_tests.cpp \
test/test_bitcoin.cpp \
test/timedata_tests.cpp \
test/transaction_tests.cpp \
test/uint256_tests.cpp \
test/univalue_tests.cpp \
test/util_tests.cpp \
test/scriptnum_tests.cpp \
test/sighash_tests.cpp
test/util_tests.cpp

if ENABLE_WALLET
BITCOIN_TESTS += \
Expand Down
2 changes: 1 addition & 1 deletion src/ecwrapper.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) 2009-2014 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#include "ecwrapper.h"
Expand Down
4 changes: 2 additions & 2 deletions src/ecwrapper.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) 2009-2014 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#ifndef BITCOIN_EC_WRAPPER_H
Expand Down Expand Up @@ -43,4 +43,4 @@ class CECKey {
static bool SanityCheck();
};

#endif
#endif // BITCOIN_EC_WRAPPER_H
16 changes: 7 additions & 9 deletions src/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,15 @@
#include <boost/unordered_map.hpp>

class CBlockIndex;
class CBlockTreeDB;
class CBloomFilter;
class CInv;
class CScriptCheck;
class CValidationInterface;
class CValidationState;

struct CBlockTemplate;
struct CNodeStateStats;

/** The maximum allowed size for a serialized block, in bytes (network rule) */
static const unsigned int MAX_BLOCK_SIZE = 1000000;
Expand Down Expand Up @@ -128,15 +135,6 @@ extern CBlockIndex *pindexBestHeader;
// Minimum disk space required - used in CheckDiskSpace()
static const uint64_t nMinDiskSpace = 52428800;


class CBlockTreeDB;
class CScriptCheck;
class CValidationState;
class CValidationInterface;
struct CNodeStateStats;

struct CBlockTemplate;

/** Register a wallet to receive updates from core */
void RegisterValidationInterface(CValidationInterface* pwalletIn);
/** Unregister a wallet from core */
Expand Down
5 changes: 4 additions & 1 deletion src/qt/optionsdialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,13 @@

#include <QDialog>

class QDataWidgetMapper;
class OptionsModel;
class QValidatedLineEdit;

QT_BEGIN_NAMESPACE
class QDataWidgetMapper;
QT_END_NAMESPACE

namespace Ui {
class OptionsDialog;
}
Expand Down
2 changes: 1 addition & 1 deletion src/rpcblockchain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ struct CompareBlocksByHeight
bool operator()(const CBlockIndex* a, const CBlockIndex* b) const
{
/* Make sure that unequal blocks with the same height do not compare
equal. Use the pointers themselves to make a distinction. */
equal. Use the pointers themselves to make a distinction. */

if (a->nHeight != b->nHeight)
return (a->nHeight > b->nHeight);
Expand Down
2 changes: 1 addition & 1 deletion src/rpcserver.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
#define _BITCOINRPC_SERVER_H_

#include "amount.h"
#include "uint256.h"
#include "rpcprotocol.h"
#include "uint256.h"

#include <list>
#include <map>
Expand Down
6 changes: 3 additions & 3 deletions src/txmempool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ class CMinerPolicyEstimator
size_t numEntries;
filein >> numEntries;
if (numEntries <= 0 || numEntries > 10000)
throw runtime_error("Corrupt estimates file. Must have between 1 and 10k entires.");
throw runtime_error("Corrupt estimates file. Must have between 1 and 10k entires.");

std::vector<CBlockAverage> fileHistory;

Expand All @@ -343,8 +343,8 @@ class CMinerPolicyEstimator
fileHistory.push_back(entry);
}

//Now that we've processed the entire fee estimate data file and not
//thrown any errors, we can copy it to our history
// Now that we've processed the entire fee estimate data file and not
// thrown any errors, we can copy it to our history
nBestSeenHeight = nFileBestSeenHeight;
history = fileHistory;
assert(history.size() > 0);
Expand Down
4 changes: 2 additions & 2 deletions src/utilstrencodings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@

#include "tinyformat.h"

#include <errno.h>
#include <limits>
#include <cstdlib>
#include <cstring>
#include <errno.h>
#include <limits>

using namespace std;

Expand Down

0 comments on commit 771d500

Please sign in to comment.