Browse Source

TRIVIAL: Missing includes

0.13
Jorge Timón 10 years ago
parent
commit
9dd793f499
  1. 1
      src/alert.cpp
  2. 1
      src/bitcoind.cpp
  3. 1
      src/checkpoints.cpp
  4. 5
      src/init.cpp
  5. 2
      src/main.cpp
  6. 1
      src/main.h
  7. 4
      src/miner.cpp
  8. 1
      src/qt/bitcoin.cpp
  9. 1
      src/qt/coincontroldialog.cpp
  10. 1
      src/qt/sendcoinsdialog.cpp
  11. 2
      src/qt/transactiontablemodel.cpp
  12. 2
      src/qt/walletmodel.cpp
  13. 1
      src/rest.cpp
  14. 6
      src/rpcblockchain.cpp
  15. 3
      src/rpcmining.cpp
  16. 1
      src/rpcmisc.cpp
  17. 2
      src/rpcnet.cpp
  18. 4
      src/rpcrawtransaction.cpp
  19. 5
      src/test/DoS_tests.cpp
  20. 1
      src/test/checkblock_tests.cpp
  21. 5
      src/test/miner_tests.cpp
  22. 3
      src/test/pow_tests.cpp
  23. 1
      src/test/script_tests.cpp
  24. 3
      src/test/sighash_tests.cpp
  25. 1
      src/test/skiplist_tests.cpp
  26. 1
      src/test/test_bitcoin.cpp
  27. 1
      src/test/transaction_tests.cpp
  28. 1
      src/txdb.cpp
  29. 3
      src/wallet/rpcdump.cpp
  30. 1
      src/wallet/rpcwallet.cpp
  31. 2
      src/wallet/wallet.cpp
  32. 1
      src/wallet/wallet.h
  33. 2
      src/wallet/wallet_ismine.h

1
src/alert.cpp

@ -11,6 +11,7 @@
#include "timedata.h" #include "timedata.h"
#include "ui_interface.h" #include "ui_interface.h"
#include "util.h" #include "util.h"
#include "utilstrencodings.h"
#include <stdint.h> #include <stdint.h>
#include <algorithm> #include <algorithm>

1
src/bitcoind.cpp

@ -3,6 +3,7 @@
// Distributed under the MIT 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. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "chainparams.h"
#include "clientversion.h" #include "clientversion.h"
#include "rpcserver.h" #include "rpcserver.h"
#include "init.h" #include "init.h"

1
src/checkpoints.cpp

@ -4,6 +4,7 @@
#include "checkpoints.h" #include "checkpoints.h"
#include "chain.h"
#include "chainparams.h" #include "chainparams.h"
#include "main.h" #include "main.h"
#include "uint256.h" #include "uint256.h"

5
src/init.cpp

@ -11,6 +11,8 @@
#include "addrman.h" #include "addrman.h"
#include "amount.h" #include "amount.h"
#include "chain.h"
#include "chainparams.h"
#include "checkpoints.h" #include "checkpoints.h"
#include "compat/sanity.h" #include "compat/sanity.h"
#include "consensus/validation.h" #include "consensus/validation.h"
@ -23,11 +25,14 @@
#include "script/standard.h" #include "script/standard.h"
#include "scheduler.h" #include "scheduler.h"
#include "txdb.h" #include "txdb.h"
#include "txmempool.h"
#include "ui_interface.h" #include "ui_interface.h"
#include "util.h" #include "util.h"
#include "utilmoneystr.h" #include "utilmoneystr.h"
#include "utilstrencodings.h"
#include "validationinterface.h" #include "validationinterface.h"
#ifdef ENABLE_WALLET #ifdef ENABLE_WALLET
#include "wallet/db.h"
#include "wallet/wallet.h" #include "wallet/wallet.h"
#include "wallet/walletdb.h" #include "wallet/walletdb.h"
#endif #endif

2
src/main.cpp

@ -13,6 +13,7 @@
#include "checkqueue.h" #include "checkqueue.h"
#include "consensus/consensus.h" #include "consensus/consensus.h"
#include "consensus/validation.h" #include "consensus/validation.h"
#include "hash.h"
#include "init.h" #include "init.h"
#include "merkleblock.h" #include "merkleblock.h"
#include "net.h" #include "net.h"
@ -24,6 +25,7 @@
#include "undo.h" #include "undo.h"
#include "util.h" #include "util.h"
#include "utilmoneystr.h" #include "utilmoneystr.h"
#include "utilstrencodings.h"
#include "validationinterface.h" #include "validationinterface.h"
#include <sstream> #include <sstream>

1
src/main.h

@ -18,6 +18,7 @@
#include "primitives/block.h" #include "primitives/block.h"
#include "primitives/transaction.h" #include "primitives/transaction.h"
#include "script/script.h" #include "script/script.h"
#include "script/script_error.h"
#include "script/sigcache.h" #include "script/sigcache.h"
#include "script/standard.h" #include "script/standard.h"
#include "sync.h" #include "sync.h"

4
src/miner.cpp

@ -6,7 +6,9 @@
#include "miner.h" #include "miner.h"
#include "amount.h" #include "amount.h"
#include "chain.h"
#include "chainparams.h" #include "chainparams.h"
#include "coins.h"
#include "consensus/consensus.h" #include "consensus/consensus.h"
#include "consensus/validation.h" #include "consensus/validation.h"
#include "hash.h" #include "hash.h"
@ -15,7 +17,9 @@
#include "policy/policy.h" #include "policy/policy.h"
#include "pow.h" #include "pow.h"
#include "primitives/transaction.h" #include "primitives/transaction.h"
#include "script/standard.h"
#include "timedata.h" #include "timedata.h"
#include "txmempool.h"
#include "util.h" #include "util.h"
#include "utilmoneystr.h" #include "utilmoneystr.h"
#include "validationinterface.h" #include "validationinterface.h"

1
src/qt/bitcoin.cpp

@ -8,6 +8,7 @@
#include "bitcoingui.h" #include "bitcoingui.h"
#include "chainparams.h"
#include "clientmodel.h" #include "clientmodel.h"
#include "guiconstants.h" #include "guiconstants.h"
#include "guiutil.h" #include "guiutil.h"

1
src/qt/coincontroldialog.cpp

@ -10,6 +10,7 @@
#include "guiutil.h" #include "guiutil.h"
#include "optionsmodel.h" #include "optionsmodel.h"
#include "scicon.h" #include "scicon.h"
#include "txmempool.h"
#include "walletmodel.h" #include "walletmodel.h"
#include "coincontrol.h" #include "coincontrol.h"

1
src/qt/sendcoinsdialog.cpp

@ -19,6 +19,7 @@
#include "coincontrol.h" #include "coincontrol.h"
#include "main.h" #include "main.h"
#include "ui_interface.h" #include "ui_interface.h"
#include "txmempool.h"
#include "wallet/wallet.h" #include "wallet/wallet.h"
#include <QMessageBox> #include <QMessageBox>

2
src/qt/transactiontablemodel.cpp

@ -25,6 +25,8 @@
#include <QIcon> #include <QIcon>
#include <QList> #include <QList>
#include <boost/foreach.hpp>
// Amount column is right-aligned it contains numbers // Amount column is right-aligned it contains numbers
static int column_alignments[] = { static int column_alignments[] = {
Qt::AlignLeft|Qt::AlignVCenter, /* status */ Qt::AlignLeft|Qt::AlignVCenter, /* status */

2
src/qt/walletmodel.cpp

@ -25,6 +25,8 @@
#include <QSet> #include <QSet>
#include <QTimer> #include <QTimer>
#include <boost/foreach.hpp>
WalletModel::WalletModel(CWallet *wallet, OptionsModel *optionsModel, QObject *parent) : WalletModel::WalletModel(CWallet *wallet, OptionsModel *optionsModel, QObject *parent) :
QObject(parent), wallet(wallet), optionsModel(optionsModel), addressTableModel(0), QObject(parent), wallet(wallet), optionsModel(optionsModel), addressTableModel(0),
transactionTableModel(0), transactionTableModel(0),

1
src/rest.cpp

@ -3,6 +3,7 @@
// Distributed under the MIT 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. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "chain.h"
#include "primitives/block.h" #include "primitives/block.h"
#include "primitives/transaction.h" #include "primitives/transaction.h"
#include "main.h" #include "main.h"

6
src/rpcblockchain.cpp

@ -3,13 +3,19 @@
// Distributed under the MIT 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. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "chain.h"
#include "chainparams.h"
#include "checkpoints.h" #include "checkpoints.h"
#include "coins.h"
#include "consensus/validation.h" #include "consensus/validation.h"
#include "main.h" #include "main.h"
#include "primitives/transaction.h" #include "primitives/transaction.h"
#include "rpcserver.h" #include "rpcserver.h"
#include "streams.h"
#include "sync.h" #include "sync.h"
#include "txmempool.h"
#include "util.h" #include "util.h"
#include "utilstrencodings.h"
#include <stdint.h> #include <stdint.h>

3
src/rpcmining.cpp

@ -4,6 +4,7 @@
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "amount.h" #include "amount.h"
#include "chain.h"
#include "chainparams.h" #include "chainparams.h"
#include "consensus/consensus.h" #include "consensus/consensus.h"
#include "consensus/validation.h" #include "consensus/validation.h"
@ -14,7 +15,9 @@
#include "net.h" #include "net.h"
#include "pow.h" #include "pow.h"
#include "rpcserver.h" #include "rpcserver.h"
#include "txmempool.h"
#include "util.h" #include "util.h"
#include "utilstrencodings.h"
#include "validationinterface.h" #include "validationinterface.h"
#include <stdint.h> #include <stdint.h>

1
src/rpcmisc.cpp

@ -12,6 +12,7 @@
#include "rpcserver.h" #include "rpcserver.h"
#include "timedata.h" #include "timedata.h"
#include "util.h" #include "util.h"
#include "utilstrencodings.h"
#ifdef ENABLE_WALLET #ifdef ENABLE_WALLET
#include "wallet/wallet.h" #include "wallet/wallet.h"
#include "wallet/walletdb.h" #include "wallet/walletdb.h"

2
src/rpcnet.cpp

@ -4,6 +4,7 @@
#include "rpcserver.h" #include "rpcserver.h"
#include "chainparams.h"
#include "clientversion.h" #include "clientversion.h"
#include "main.h" #include "main.h"
#include "net.h" #include "net.h"
@ -12,6 +13,7 @@
#include "sync.h" #include "sync.h"
#include "timedata.h" #include "timedata.h"
#include "util.h" #include "util.h"
#include "utilstrencodings.h"
#include "version.h" #include "version.h"
#include <boost/foreach.hpp> #include <boost/foreach.hpp>

4
src/rpcrawtransaction.cpp

@ -4,6 +4,8 @@
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "base58.h" #include "base58.h"
#include "chain.h"
#include "coins.h"
#include "consensus/validation.h" #include "consensus/validation.h"
#include "core_io.h" #include "core_io.h"
#include "init.h" #include "init.h"
@ -18,7 +20,9 @@
#include "script/script_error.h" #include "script/script_error.h"
#include "script/sign.h" #include "script/sign.h"
#include "script/standard.h" #include "script/standard.h"
#include "txmempool.h"
#include "uint256.h" #include "uint256.h"
#include "utilstrencodings.h"
#ifdef ENABLE_WALLET #ifdef ENABLE_WALLET
#include "wallet/wallet.h" #include "wallet/wallet.h"
#endif #endif

5
src/test/DoS_tests.cpp

@ -2,12 +2,9 @@
// Distributed under the MIT 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. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
//
// Unit tests for denial-of-service detection/prevention code // Unit tests for denial-of-service detection/prevention code
//
#include "chainparams.h"
#include "keystore.h" #include "keystore.h"
#include "main.h" #include "main.h"
#include "net.h" #include "net.h"

1
src/test/checkblock_tests.cpp

@ -5,6 +5,7 @@
#include "clientversion.h" #include "clientversion.h"
#include "consensus/validation.h" #include "consensus/validation.h"
#include "main.h" #include "main.h"
#include "primitives/block.h"
#include "test/test_bitcoin.h" #include "test/test_bitcoin.h"
#include "utiltime.h" #include "utiltime.h"

5
src/test/miner_tests.cpp

@ -2,12 +2,17 @@
// Distributed under the MIT 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. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "chainparams.h"
#include "coins.h"
#include "consensus/validation.h" #include "consensus/validation.h"
#include "main.h" #include "main.h"
#include "miner.h" #include "miner.h"
#include "pubkey.h" #include "pubkey.h"
#include "script/standard.h"
#include "txmempool.h"
#include "uint256.h" #include "uint256.h"
#include "util.h" #include "util.h"
#include "utilstrencodings.h"
#include "test/test_bitcoin.h" #include "test/test_bitcoin.h"

3
src/test/pow_tests.cpp

@ -2,8 +2,11 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "chain.h"
#include "chainparams.h"
#include "main.h" #include "main.h"
#include "pow.h" #include "pow.h"
#include "random.h"
#include "util.h" #include "util.h"
#include "test/test_bitcoin.h" #include "test/test_bitcoin.h"

1
src/test/script_tests.cpp

@ -13,6 +13,7 @@
#include "script/script_error.h" #include "script/script_error.h"
#include "script/sign.h" #include "script/sign.h"
#include "util.h" #include "util.h"
#include "utilstrencodings.h"
#include "test/test_bitcoin.h" #include "test/test_bitcoin.h"
#if defined(HAVE_CONSENSUS_LIB) #if defined(HAVE_CONSENSUS_LIB)

3
src/test/sighash_tests.cpp

@ -4,13 +4,16 @@
#include "consensus/validation.h" #include "consensus/validation.h"
#include "data/sighash.json.h" #include "data/sighash.json.h"
#include "hash.h"
#include "main.h" #include "main.h"
#include "random.h" #include "random.h"
#include "script/interpreter.h" #include "script/interpreter.h"
#include "script/script.h" #include "script/script.h"
#include "serialize.h" #include "serialize.h"
#include "streams.h"
#include "test/test_bitcoin.h" #include "test/test_bitcoin.h"
#include "util.h" #include "util.h"
#include "utilstrencodings.h"
#include "version.h" #include "version.h"
#include <iostream> #include <iostream>

1
src/test/skiplist_tests.cpp

@ -2,6 +2,7 @@
// Distributed under the MIT 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. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "chain.h"
#include "main.h" #include "main.h"
#include "random.h" #include "random.h"
#include "util.h" #include "util.h"

1
src/test/test_bitcoin.cpp

@ -6,6 +6,7 @@
#include "test_bitcoin.h" #include "test_bitcoin.h"
#include "chainparams.h"
#include "key.h" #include "key.h"
#include "main.h" #include "main.h"
#include "random.h" #include "random.h"

1
src/test/transaction_tests.cpp

@ -15,6 +15,7 @@
#include "policy/policy.h" #include "policy/policy.h"
#include "script/script.h" #include "script/script.h"
#include "script/script_error.h" #include "script/script_error.h"
#include "utilstrencodings.h"
#include <map> #include <map>
#include <string> #include <string>

1
src/txdb.cpp

@ -5,6 +5,7 @@
#include "txdb.h" #include "txdb.h"
#include "chain.h"
#include "chainparams.h" #include "chainparams.h"
#include "hash.h" #include "hash.h"
#include "main.h" #include "main.h"

3
src/wallet/rpcdump.cpp

@ -3,6 +3,7 @@
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "base58.h" #include "base58.h"
#include "chain.h"
#include "rpcserver.h" #include "rpcserver.h"
#include "init.h" #include "init.h"
#include "main.h" #include "main.h"
@ -21,6 +22,8 @@
#include "univalue/univalue.h" #include "univalue/univalue.h"
#include <boost/foreach.hpp>
using namespace std; using namespace std;
void EnsureWalletIsUnlocked(); void EnsureWalletIsUnlocked();

1
src/wallet/rpcwallet.cpp

@ -5,6 +5,7 @@
#include "amount.h" #include "amount.h"
#include "base58.h" #include "base58.h"
#include "chain.h"
#include "core_io.h" #include "core_io.h"
#include "init.h" #include "init.h"
#include "main.h" #include "main.h"

2
src/wallet/wallet.cpp

@ -7,6 +7,7 @@
#include "base58.h" #include "base58.h"
#include "checkpoints.h" #include "checkpoints.h"
#include "chain.h"
#include "coincontrol.h" #include "coincontrol.h"
#include "consensus/consensus.h" #include "consensus/consensus.h"
#include "consensus/validation.h" #include "consensus/validation.h"
@ -16,6 +17,7 @@
#include "script/script.h" #include "script/script.h"
#include "script/sign.h" #include "script/sign.h"
#include "timedata.h" #include "timedata.h"
#include "txmempool.h"
#include "util.h" #include "util.h"
#include "utilmoneystr.h" #include "utilmoneystr.h"

1
src/wallet/wallet.h

@ -11,6 +11,7 @@
#include "keystore.h" #include "keystore.h"
#include "primitives/block.h" #include "primitives/block.h"
#include "primitives/transaction.h" #include "primitives/transaction.h"
#include "streams.h"
#include "tinyformat.h" #include "tinyformat.h"
#include "ui_interface.h" #include "ui_interface.h"
#include "utilstrencodings.h" #include "utilstrencodings.h"

2
src/wallet/wallet_ismine.h

@ -9,6 +9,8 @@
#include "key.h" #include "key.h"
#include "script/standard.h" #include "script/standard.h"
#include <stdint.h>
class CKeyStore; class CKeyStore;
class CScript; class CScript;

Loading…
Cancel
Save