Browse Source

move rpc* to rpc/

pull/4/head
Daniel Cousens 9 years ago
committed by Jack Grigg
parent
commit
4519a766b6
No known key found for this signature in database GPG Key ID: 1B8D649257DB0829
  1. 22
      src/Makefile.am
  2. 4
      src/bitcoin-cli.cpp
  3. 3
      src/bitcoind.cpp
  4. 2
      src/gtest/test_rpc.cpp
  5. 4
      src/httprpc.cpp
  6. 2
      src/httpserver.cpp
  7. 2
      src/init.cpp
  8. 2
      src/rest.cpp
  9. 3
      src/rpc/blockchain.cpp
  10. 5
      src/rpc/client.cpp
  11. 0
      src/rpc/client.h
  12. 3
      src/rpc/mining.cpp
  13. 2
      src/rpc/misc.cpp
  14. 2
      src/rpc/net.cpp
  15. 2
      src/rpc/protocol.cpp
  16. 0
      src/rpc/protocol.h
  17. 2
      src/rpc/rawtransaction.cpp
  18. 2
      src/rpc/server.cpp
  19. 2
      src/rpc/server.h
  20. 4
      src/test/alert_tests.cpp
  21. 6
      src/test/rpc_tests.cpp
  22. 6
      src/test/rpc_wallet_tests.cpp
  23. 4
      src/wallet/asyncrpcoperation_mergetoaddress.cpp
  24. 4
      src/wallet/asyncrpcoperation_sendmany.cpp
  25. 4
      src/wallet/asyncrpcoperation_shieldcoinbase.cpp
  26. 2
      src/wallet/rpcdisclosure.cpp
  27. 3
      src/wallet/rpcdump.cpp
  28. 2
      src/wallet/rpcwallet.cpp
  29. 2
      src/zcbenchmarks.cpp

22
src/Makefile.am

@ -176,9 +176,9 @@ BITCOIN_CORE_H = \
pubkey.h \
random.h \
reverselock.h \
rpcclient.h \
rpcprotocol.h \
rpcserver.h \
rpc/client.h \
rpc/protocol.h \
rpc/server.h \
scheduler.h \
script/interpreter.h \
script/script.h \
@ -260,12 +260,12 @@ libbitcoin_server_a_SOURCES = \
policy/fees.cpp \
pow.cpp \
rest.cpp \
rpcblockchain.cpp \
rpcmining.cpp \
rpcmisc.cpp \
rpcnet.cpp \
rpcrawtransaction.cpp \
rpcserver.cpp \
rpc/blockchain.cpp \
rpc/mining.cpp \
rpc/misc.cpp \
rpc/net.cpp \
rpc/rawtransaction.cpp \
rpc/server.cpp \
script/sigcache.cpp \
timedata.cpp \
torcontrol.cpp \
@ -399,7 +399,7 @@ libbitcoin_util_a_SOURCES = \
compat/glibcxx_sanity.cpp \
compat/strnlen.cpp \
random.cpp \
rpcprotocol.cpp \
rpc/protocol.cpp \
support/cleanse.cpp \
sync.cpp \
uint256.cpp \
@ -418,7 +418,7 @@ endif
libbitcoin_cli_a_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES)
libbitcoin_cli_a_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
libbitcoin_cli_a_SOURCES = \
rpcclient.cpp \
rpc/client.cpp \
$(BITCOIN_CORE_H) \
$(LIBZCASH_H)

4
src/bitcoin-cli.cpp

@ -5,8 +5,8 @@
#include "chainparamsbase.h"
#include "clientversion.h"
#include "rpcclient.h"
#include "rpcprotocol.h"
#include "rpc/client.h"
#include "rpc/protocol.h"
#include "util.h"
#include "utilstrencodings.h"

3
src/bitcoind.cpp

@ -4,7 +4,7 @@
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "clientversion.h"
#include "rpcserver.h"
#include "rpc/server.h"
#include "init.h"
#include "main.h"
#include "noui.h"
@ -12,7 +12,6 @@
#include "util.h"
#include "httpserver.h"
#include "httprpc.h"
#include "rpcserver.h"
#include <boost/algorithm/string/predicate.hpp>
#include <boost/filesystem.hpp>

2
src/gtest/test_rpc.cpp

@ -5,7 +5,7 @@
#include "chainparams.h"
#include "clientversion.h"
#include "primitives/block.h"
#include "rpcserver.h"
#include "rpc/server.h"
#include "streams.h"
#include "utilstrencodings.h"

4
src/httprpc.cpp

@ -3,8 +3,8 @@
#include "chainparams.h"
#include "httpserver.h"
#include "key_io.h"
#include "rpcprotocol.h"
#include "rpcserver.h"
#include "rpc/protocol.h"
#include "rpc/server.h"
#include "random.h"
#include "sync.h"
#include "util.h"

2
src/httpserver.cpp

@ -8,7 +8,7 @@
#include "compat.h"
#include "util.h"
#include "netbase.h"
#include "rpcprotocol.h" // For HTTP status codes
#include "rpc/protocol.h" // For HTTP status codes
#include "sync.h"
#include "ui_interface.h"

2
src/init.cpp

@ -25,7 +25,7 @@
#include "metrics.h"
#include "miner.h"
#include "net.h"
#include "rpcserver.h"
#include "rpc/server.h"
#include "script/standard.h"
#include "scheduler.h"
#include "txdb.h"

2
src/rest.cpp

@ -7,7 +7,7 @@
#include "primitives/transaction.h"
#include "main.h"
#include "httpserver.h"
#include "rpcserver.h"
#include "rpc/server.h"
#include "streams.h"
#include "sync.h"
#include "txmempool.h"

3
src/rpcblockchain.cpp → src/rpc/blockchain.cpp

@ -10,7 +10,8 @@
#include "consensus/validation.h"
#include "main.h"
#include "primitives/transaction.h"
#include "rpcserver.h"
#include "rpc/server.h"
#include "streams.h"
#include "sync.h"
#include "util.h"

5
src/rpcclient.cpp → src/rpc/client.cpp

@ -3,9 +3,8 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "rpcclient.h"
#include "rpcprotocol.h"
#include "rpc/client.h"
#include "rpc/protocol.h"
#include "util.h"
#include <set>

0
src/rpcclient.h → src/rpc/client.h

3
src/rpcmining.cpp → src/rpc/mining.cpp

@ -17,7 +17,8 @@
#include "miner.h"
#include "net.h"
#include "pow.h"
#include "rpcserver.h"
#include "rpc/server.h"
#include "txmempool.h"
#include "util.h"
#include "validationinterface.h"
#ifdef ENABLE_WALLET

2
src/rpcmisc.cpp → src/rpc/misc.cpp

@ -9,7 +9,7 @@
#include "main.h"
#include "net.h"
#include "netbase.h"
#include "rpcserver.h"
#include "rpc/server.h"
#include "timedata.h"
#include "util.h"
#ifdef ENABLE_WALLET

2
src/rpcnet.cpp → src/rpc/net.cpp

@ -2,7 +2,7 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "rpcserver.h"
#include "rpc/server.h"
#include "clientversion.h"
#include "main.h"

2
src/rpcprotocol.cpp → src/rpc/protocol.cpp

@ -3,7 +3,7 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "rpcprotocol.h"
#include "rpc/protocol.h"
#include "random.h"
#include "tinyformat.h"

0
src/rpcprotocol.h → src/rpc/protocol.h

2
src/rpcrawtransaction.cpp → src/rpc/rawtransaction.cpp

@ -13,7 +13,7 @@
#include "merkleblock.h"
#include "net.h"
#include "primitives/transaction.h"
#include "rpcserver.h"
#include "rpc/server.h"
#include "script/script.h"
#include "script/script_error.h"
#include "script/sign.h"

2
src/rpcserver.cpp → src/rpc/server.cpp

@ -3,7 +3,7 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "rpcserver.h"
#include "rpc/server.h"
#include "init.h"
#include "key_io.h"

2
src/rpcserver.h → src/rpc/server.h

@ -7,7 +7,7 @@
#define BITCOIN_RPCSERVER_H
#include "amount.h"
#include "rpcprotocol.h"
#include "rpc/protocol.h"
#include "uint256.h"
#include <list>

4
src/test/alert_tests.cpp

@ -13,8 +13,8 @@
#include "data/alertTests.raw.h"
#include "main.h"
#include "rpcprotocol.h"
#include "rpcserver.h"
#include "rpc/protocol.h"
#include "rpc/server.h"
#include "serialize.h"
#include "streams.h"
#include "util.h"

6
src/test/rpc_tests.cpp

@ -2,8 +2,8 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "rpcserver.h"
#include "rpcclient.h"
#include "rpc/server.h"
#include "rpc/client.h"
#include "key_io.h"
#include "netbase.h"
@ -248,7 +248,7 @@ BOOST_AUTO_TEST_CASE(rpc_ban)
adr = find_value(o1, "address");
banned_until = find_value(o1, "banned_until");
BOOST_CHECK_EQUAL(adr.get_str(), "127.0.0.0/255.255.255.0");
int64_t now = GetTime();
int64_t now = GetTime();
BOOST_CHECK(banned_until.get_int64() > now);
BOOST_CHECK(banned_until.get_int64()-now <= 200);

6
src/test/rpc_wallet_tests.cpp

@ -2,8 +2,8 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "rpcserver.h"
#include "rpcclient.h"
#include "rpc/server.h"
#include "rpc/client.h"
#include "key_io.h"
#include "main.h"
@ -13,14 +13,12 @@
#include "zcash/Address.hpp"
#include "rpcserver.h"
#include "asyncrpcqueue.h"
#include "asyncrpcoperation.h"
#include "wallet/asyncrpcoperation_mergetoaddress.h"
#include "wallet/asyncrpcoperation_sendmany.h"
#include "wallet/asyncrpcoperation_shieldcoinbase.h"
#include "rpcprotocol.h"
#include "init.h"
#include <array>

4
src/wallet/asyncrpcoperation_mergetoaddress.cpp

@ -13,8 +13,8 @@
#include "miner.h"
#include "net.h"
#include "netbase.h"
#include "rpcprotocol.h"
#include "rpcserver.h"
#include "rpc/protocol.h"
#include "rpc/server.h"
#include "script/interpreter.h"
#include "sodium.h"
#include "timedata.h"

4
src/wallet/asyncrpcoperation_sendmany.cpp

@ -12,7 +12,8 @@
#include "main.h"
#include "net.h"
#include "netbase.h"
#include "rpcserver.h"
#include "rpc/protocol.h"
#include "rpc/server.h"
#include "timedata.h"
#include "util.h"
#include "utilmoneystr.h"
@ -20,7 +21,6 @@
#include "walletdb.h"
#include "script/interpreter.h"
#include "utiltime.h"
#include "rpcprotocol.h"
#include "zcash/IncrementalMerkleTree.hpp"
#include "sodium.h"
#include "miner.h"

4
src/wallet/asyncrpcoperation_shieldcoinbase.cpp

@ -11,7 +11,8 @@
#include "main.h"
#include "net.h"
#include "netbase.h"
#include "rpcserver.h"
#include "rpc/protocol.h"
#include "rpc/server.h"
#include "timedata.h"
#include "util.h"
#include "utilmoneystr.h"
@ -19,7 +20,6 @@
#include "walletdb.h"
#include "script/interpreter.h"
#include "utiltime.h"
#include "rpcprotocol.h"
#include "zcash/IncrementalMerkleTree.hpp"
#include "sodium.h"
#include "miner.h"

2
src/wallet/rpcdisclosure.cpp

@ -2,7 +2,7 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "rpcserver.h"
#include "rpc/server.h"
#include "init.h"
#include "key_io.h"
#include "main.h"

3
src/wallet/rpcdump.cpp

@ -2,8 +2,9 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "chain.h"
#include "key_io.h"
#include "rpcserver.h"
#include "rpc/server.h"
#include "init.h"
#include "main.h"
#include "script/script.h"

2
src/wallet/rpcwallet.cpp

@ -11,7 +11,7 @@
#include "main.h"
#include "net.h"
#include "netbase.h"
#include "rpcserver.h"
#include "rpc/server.h"
#include "timedata.h"
#include "util.h"
#include "utilmoneystr.h"

2
src/zcbenchmarks.cpp

@ -18,7 +18,7 @@
#include "main.h"
#include "miner.h"
#include "pow.h"
#include "rpcserver.h"
#include "rpc/server.h"
#include "script/sign.h"
#include "sodium.h"
#include "streams.h"

Loading…
Cancel
Save