From 18fb36367a28819bd5ab402344802796a1248979 Mon Sep 17 00:00:00 2001 From: Ben Woosley Date: Mon, 6 Mar 2023 23:41:46 +0100 Subject: refactor: Extract util/fs_helpers from util/system This is an extraction of filesystem related functions from util/system into their own utility file. The background of this commit is an ongoing effort to decouple the libbitcoinkernel library from the ArgsManager defined in system.h. Moving these functions out of system.h allows including them from a separate source file without including the ArgsManager definitions from system.h. --- src/rpc/request.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/rpc') diff --git a/src/rpc/request.cpp b/src/rpc/request.cpp index b6ef1909c9..83ff0e1f5c 100644 --- a/src/rpc/request.cpp +++ b/src/rpc/request.cpp @@ -9,8 +9,9 @@ #include #include -#include +#include #include +#include #include #include -- cgit v1.2.3 From 00e9b97f37e0bdf4c647236838c10b68b7ad5be3 Mon Sep 17 00:00:00 2001 From: TheCharlatan Date: Wed, 15 Mar 2023 11:18:06 +0100 Subject: refactor: Move fs.* to util/fs.* The fs.* files are already part of the libbitcoin_util library. With the introduction of the fs_helpers.* it makes sense to move fs.* into the util/ directory as well. --- src/rpc/blockchain.cpp | 2 +- src/rpc/blockchain.h | 2 +- src/rpc/mempool.cpp | 2 +- src/rpc/request.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/rpc') diff --git a/src/rpc/blockchain.cpp b/src/rpc/blockchain.cpp index 1a9b265fbe..fb22321d90 100644 --- a/src/rpc/blockchain.cpp +++ b/src/rpc/blockchain.cpp @@ -15,7 +15,6 @@ #include #include #include -#include #include #include #include @@ -39,6 +38,7 @@ #include #include #include +#include #include #include #include diff --git a/src/rpc/blockchain.h b/src/rpc/blockchain.h index 9ccb87b78a..0a86085db0 100644 --- a/src/rpc/blockchain.h +++ b/src/rpc/blockchain.h @@ -7,9 +7,9 @@ #include #include -#include #include #include +#include #include #include diff --git a/src/rpc/mempool.cpp b/src/rpc/mempool.cpp index 3a69e2d8a2..927b4ce1fc 100644 --- a/src/rpc/mempool.cpp +++ b/src/rpc/mempool.cpp @@ -9,7 +9,6 @@ #include #include -#include #include #include #include @@ -21,6 +20,7 @@ #include