refactor: Decouple net from xrpld and move rpc-related classes to the rpc folder (#5477)

As a step of modularisation, this change moves code from `xrpld` to `libxrpl`.
This commit is contained in:
Jingchen
2025-08-16 00:27:13 +01:00
committed by GitHub
parent fb89213d4d
commit ceb0ce5634
33 changed files with 83 additions and 64 deletions

View File

@@ -30,12 +30,12 @@
#include <xrpld/app/ledger/LedgerMaster.h>
#include <xrpld/app/misc/NetworkOPs.h>
#include <xrpld/net/HTTPClient.h>
#include <xrpld/net/RPCCall.h>
#include <xrpld/rpc/RPCCall.h>
#include <xrpl/basics/Slice.h>
#include <xrpl/basics/contract.h>
#include <xrpl/json/to_string.h>
#include <xrpl/net/HTTPClient.h>
#include <xrpl/protocol/ErrorCodes.h>
#include <xrpl/protocol/Indexes.h>
#include <xrpl/protocol/Serializer.h>
@@ -74,7 +74,11 @@ Env::AppBundle::AppBundle(
auto timeKeeper_ = std::make_unique<ManualTimeKeeper>();
timeKeeper = timeKeeper_.get();
// Hack so we don't have to call Config::setup
HTTPClient::initializeSSLContext(*config, debugLog());
HTTPClient::initializeSSLContext(
config->SSL_VERIFY_DIR,
config->SSL_VERIFY_FILE,
config->SSL_VERIFY,
debugLog());
owned = make_Application(
std::move(config), std::move(logs), std::move(timeKeeper_));
app = owned.get();

View File

@@ -19,7 +19,7 @@
#include <test/jtx/utility.h>
#include <xrpld/net/RPCCall.h>
#include <xrpld/rpc/RPCCall.h>
#include <xrpl/basics/contract.h>
#include <xrpl/json/Object.h>

View File

@@ -18,7 +18,7 @@
#include <test/jtx.h>
#include <test/jtx/utility.h>
#include <xrpld/net/RPCCall.h>
#include <xrpld/rpc/RPCCall.h>
#include <xrpld/rpc/detail/RPCHelpers.h>
#include <xrpl/beast/unit_test.h>