refactor: Decouple app/tx from Application and Config (#6227)

This change decouples app/tx from `Application` and `Config` to clear the way to moving transactors to `libxrpl`.
This commit is contained in:
Jingchen
2026-02-17 16:29:53 +00:00
committed by GitHub
parent 958d8f3754
commit 36240116a5
46 changed files with 256 additions and 155 deletions

View File

@@ -15,6 +15,7 @@
#include <xrpl/basics/Slice.h>
#include <xrpl/basics/contract.h>
#include <xrpl/basics/scope.h>
#include <xrpl/core/NetworkIDService.h>
#include <xrpl/json/to_string.h>
#include <xrpl/net/HTTPClient.h>
#include <xrpl/protocol/ErrorCodes.h>
@@ -526,7 +527,7 @@ Env::autofill(JTx& jt)
if (jt.fill_netid)
{
uint32_t networkID = app().config().NETWORK_ID;
uint32_t networkID = app().getNetworkIDService().getNetworkID();
if (!jv.isMember(jss::NetworkID) && networkID > 1024)
jv[jss::NetworkID] = std::to_string(networkID);
}