From c26582bdf9bb42ccf107df2cda3e714c5936b592 Mon Sep 17 00:00:00 2001 From: Nicholas Dudfield Date: Mon, 16 Mar 2026 15:58:58 +0700 Subject: [PATCH] fix(export): move ExportLimits.h to xrpl/protocol Both xrpld.overlay and xrpl.hook depend on xrpl.protocol, so placing the header there avoids introducing a new xrpld.overlay > xrpl.hook levelization dependency. --- Builds/levelization/results/ordering.txt | 1 - include/xrpl/{hook => protocol}/ExportLimits.h | 4 ++-- src/xrpld/app/hook/detail/applyHook.cpp | 2 +- src/xrpld/overlay/detail/PeerImp.cpp | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) rename include/xrpl/{hook => protocol}/ExportLimits.h (91%) diff --git a/Builds/levelization/results/ordering.txt b/Builds/levelization/results/ordering.txt index 3b0620cdb..27ff477d8 100644 --- a/Builds/levelization/results/ordering.txt +++ b/Builds/levelization/results/ordering.txt @@ -184,7 +184,6 @@ xrpld.overlay > xrpl.basics xrpld.overlay > xrpld.core xrpld.overlay > xrpld.peerfinder xrpld.overlay > xrpld.perflog -xrpld.overlay > xrpl.hook xrpld.overlay > xrpl.json xrpld.overlay > xrpl.protocol xrpld.overlay > xrpl.resource diff --git a/include/xrpl/hook/ExportLimits.h b/include/xrpl/protocol/ExportLimits.h similarity index 91% rename from include/xrpl/hook/ExportLimits.h rename to include/xrpl/protocol/ExportLimits.h index 01847cf00..853575906 100644 --- a/include/xrpl/hook/ExportLimits.h +++ b/include/xrpl/protocol/ExportLimits.h @@ -1,5 +1,5 @@ -#ifndef RIPPLE_HOOK_EXPORT_LIMITS_H_INCLUDED -#define RIPPLE_HOOK_EXPORT_LIMITS_H_INCLUDED +#ifndef RIPPLE_PROTOCOL_EXPORT_LIMITS_H_INCLUDED +#define RIPPLE_PROTOCOL_EXPORT_LIMITS_H_INCLUDED #include diff --git a/src/xrpld/app/hook/detail/applyHook.cpp b/src/xrpld/app/hook/detail/applyHook.cpp index e58513d96..8ac1fcb08 100644 --- a/src/xrpld/app/hook/detail/applyHook.cpp +++ b/src/xrpld/app/hook/detail/applyHook.cpp @@ -10,8 +10,8 @@ #include #include #include -#include #include +#include #include #include #include diff --git a/src/xrpld/overlay/detail/PeerImp.cpp b/src/xrpld/overlay/detail/PeerImp.cpp index 3cc7b8f93..b4f2b62b6 100644 --- a/src/xrpld/overlay/detail/PeerImp.cpp +++ b/src/xrpld/overlay/detail/PeerImp.cpp @@ -39,7 +39,7 @@ #include #include #include -#include +#include #include #include