File tree Expand file tree Collapse file tree 24 files changed +74
-76
lines changed Expand file tree Collapse file tree 24 files changed +74
-76
lines changed Original file line number Diff line number Diff line change @@ -131,9 +131,9 @@ BITCOIN_CORE_H = \
131
131
pubkey.h \
132
132
random.h \
133
133
reverselock.h \
134
- rpcclient .h \
135
- rpcprotocol .h \
136
- rpcserver .h \
134
+ rpc/client .h \
135
+ rpc/protocol .h \
136
+ rpc/server .h \
137
137
scheduler.h \
138
138
script/interpreter.h \
139
139
script/script.h \
@@ -203,12 +203,12 @@ libbitcoin_server_a_SOURCES = \
203
203
policy/policy.cpp \
204
204
pow.cpp \
205
205
rest.cpp \
206
- rpcblockchain .cpp \
207
- rpcmining .cpp \
208
- rpcmisc .cpp \
209
- rpcnet .cpp \
210
- rpcrawtransaction .cpp \
211
- rpcserver .cpp \
206
+ rpc/blockchain .cpp \
207
+ rpc/mining .cpp \
208
+ rpc/misc .cpp \
209
+ rpc/net .cpp \
210
+ rpc/rawtransaction .cpp \
211
+ rpc/server .cpp \
212
212
script/sigcache.cpp \
213
213
timedata.cpp \
214
214
torcontrol.cpp \
@@ -304,7 +304,7 @@ libbitcoin_util_a_SOURCES = \
304
304
compat/glibcxx_sanity.cpp \
305
305
compat/strnlen.cpp \
306
306
random.cpp \
307
- rpcprotocol .cpp \
307
+ rpc/protocol .cpp \
308
308
support/cleanse.cpp \
309
309
sync.cpp \
310
310
uint256.cpp \
@@ -322,7 +322,7 @@ endif
322
322
libbitcoin_cli_a_CPPFLAGS = $(AM_CPPFLAGS ) $(BITCOIN_INCLUDES )
323
323
libbitcoin_cli_a_CXXFLAGS = $(AM_CXXFLAGS ) $(PIE_FLAGS )
324
324
libbitcoin_cli_a_SOURCES = \
325
- rpcclient .cpp \
325
+ rpc/client .cpp \
326
326
$(BITCOIN_CORE_H )
327
327
328
328
nodist_libbitcoin_util_a_SOURCES = $(srcdir ) /obj/build.h
Original file line number Diff line number Diff line change 5
5
6
6
#include " chainparamsbase.h"
7
7
#include " clientversion.h"
8
- #include " rpcclient .h"
9
- #include " rpcprotocol .h"
8
+ #include " rpc/client .h"
9
+ #include " rpc/protocol .h"
10
10
#include " util.h"
11
11
#include " utilstrencodings.h"
12
12
Original file line number Diff line number Diff line change 5
5
6
6
#include " chainparams.h"
7
7
#include " clientversion.h"
8
- #include " rpcserver .h"
8
+ #include " rpc/server .h"
9
9
#include " init.h"
10
10
#include " noui.h"
11
11
#include " scheduler.h"
12
12
#include " util.h"
13
13
#include " httpserver.h"
14
14
#include " httprpc.h"
15
- #include " rpcserver.h"
16
15
17
16
#include < boost/algorithm/string/predicate.hpp>
18
17
#include < boost/filesystem.hpp>
Original file line number Diff line number Diff line change 3
3
#include " base58.h"
4
4
#include " chainparams.h"
5
5
#include " httpserver.h"
6
- #include " rpcprotocol .h"
7
- #include " rpcserver .h"
6
+ #include " rpc/protocol .h"
7
+ #include " rpc/server .h"
8
8
#include " random.h"
9
9
#include " sync.h"
10
10
#include " util.h"
Original file line number Diff line number Diff line change 8
8
#include " compat.h"
9
9
#include " util.h"
10
10
#include " netbase.h"
11
- #include " rpcprotocol .h" // For HTTP status codes
11
+ #include " rpc/protocol .h" // For HTTP status codes
12
12
#include " sync.h"
13
13
#include " ui_interface.h"
14
14
Original file line number Diff line number Diff line change 23
23
#include " miner.h"
24
24
#include " net.h"
25
25
#include " policy/policy.h"
26
- #include " rpcserver .h"
26
+ #include " rpc/server .h"
27
27
#include " script/standard.h"
28
28
#include " script/sigcache.h"
29
29
#include " scheduler.h"
Original file line number Diff line number Diff line change 26
26
#endif
27
27
28
28
#include " init.h"
29
- #include " rpcserver .h"
29
+ #include " rpc/server .h"
30
30
#include " scheduler.h"
31
31
#include " ui_interface.h"
32
32
#include " util.h"
Original file line number Diff line number Diff line change 12
12
#include " bantablemodel.h"
13
13
14
14
#include " chainparams.h"
15
- #include " rpcserver .h"
16
- #include " rpcclient .h"
15
+ #include " rpc/server .h"
16
+ #include " rpc/client .h"
17
17
#include " util.h"
18
18
19
19
#include < openssl/crypto.h>
Original file line number Diff line number Diff line change 9
9
#include " primitives/transaction.h"
10
10
#include " main.h"
11
11
#include " httpserver.h"
12
- #include " rpcserver .h"
12
+ #include " rpc/server .h"
13
13
#include " streams.h"
14
14
#include " sync.h"
15
15
#include " txmempool.h"
Original file line number Diff line number Diff line change 12
12
#include " main.h"
13
13
#include " policy/policy.h"
14
14
#include " primitives/transaction.h"
15
- #include " rpcserver .h"
15
+ #include " rpc/server .h"
16
16
#include " streams.h"
17
17
#include " sync.h"
18
18
#include " txmempool.h"
Original file line number Diff line number Diff line change 3
3
// Distributed under the MIT software license, see the accompanying
4
4
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
5
5
6
- #include " rpcclient.h"
7
-
8
- #include " rpcprotocol.h"
6
+ #include " rpc/client.h"
7
+ #include " rpc/protocol.h"
9
8
#include " util.h"
10
9
11
10
#include < set>
File renamed without changes.
Original file line number Diff line number Diff line change 14
14
#include " miner.h"
15
15
#include " net.h"
16
16
#include " pow.h"
17
- #include " rpcserver .h"
17
+ #include " rpc/server .h"
18
18
#include " txmempool.h"
19
19
#include " util.h"
20
20
#include " utilstrencodings.h"
Original file line number Diff line number Diff line change 9
9
#include " main.h"
10
10
#include " net.h"
11
11
#include " netbase.h"
12
- #include " rpcserver .h"
12
+ #include " rpc/server .h"
13
13
#include " timedata.h"
14
14
#include " util.h"
15
15
#include " utilstrencodings.h"
Original file line number Diff line number Diff line change 2
2
// Distributed under the MIT software license, see the accompanying
3
3
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
4
5
- #include " rpcserver .h"
5
+ #include " rpc/server .h"
6
6
7
7
#include " chainparams.h"
8
8
#include " clientversion.h"
Original file line number Diff line number Diff line change 3
3
// Distributed under the MIT software license, see the accompanying
4
4
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
5
5
6
- #include " rpcprotocol .h"
6
+ #include " rpc/protocol .h"
7
7
8
8
#include " random.h"
9
9
#include " tinyformat.h"
File renamed without changes.
Original file line number Diff line number Diff line change 15
15
#include " net.h"
16
16
#include " policy/policy.h"
17
17
#include " primitives/transaction.h"
18
- #include " rpcserver .h"
18
+ #include " rpc/server .h"
19
19
#include " script/script.h"
20
20
#include " script/script_error.h"
21
21
#include " script/sign.h"
Original file line number Diff line number Diff line change 3
3
// Distributed under the MIT software license, see the accompanying
4
4
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
5
5
6
- #include " rpcserver .h"
6
+ #include " rpc/server .h"
7
7
8
8
#include " base58.h"
9
9
#include " init.h"
Original file line number Diff line number Diff line change 7
7
#define BITCOIN_RPCSERVER_H
8
8
9
9
#include " amount.h"
10
- #include " rpcprotocol .h"
10
+ #include " rpc/protocol .h"
11
11
#include " uint256.h"
12
12
13
13
#include < list>
Original file line number Diff line number Diff line change 2
2
// Distributed under the MIT software license, see the accompanying
3
3
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
4
5
- #include " rpcserver .h"
6
- #include " rpcclient .h"
5
+ #include " rpc/server .h"
6
+ #include " rpc/client .h"
7
7
8
8
#include " base58.h"
9
9
#include " netbase.h"
@@ -260,7 +260,7 @@ BOOST_AUTO_TEST_CASE(rpc_ban)
260
260
adr = find_value (o1, " address" );
261
261
banned_until = find_value (o1, " banned_until" );
262
262
BOOST_CHECK_EQUAL (adr.get_str (), " 127.0.0.0/24" );
263
- int64_t now = GetTime ();
263
+ int64_t now = GetTime ();
264
264
BOOST_CHECK (banned_until.get_int64 () > now);
265
265
BOOST_CHECK (banned_until.get_int64 ()-now <= 200 );
266
266
Original file line number Diff line number Diff line change 2
2
// Distributed under the MIT software license, see the accompanying
3
3
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
4
5
- #include " rpcserver .h"
6
- #include " rpcclient .h"
5
+ #include " rpc/server .h"
6
+ #include " rpc/client .h"
7
7
8
8
#include " base58.h"
9
9
#include " main.h"
Original file line number Diff line number Diff line change 4
4
5
5
#include " base58.h"
6
6
#include " chain.h"
7
- #include " rpcserver .h"
7
+ #include " rpc/server .h"
8
8
#include " init.h"
9
9
#include " main.h"
10
10
#include " script/script.h"
You can’t perform that action at this time.
0 commit comments