From 28650cb14bd528d0ad401fac5b9088dc49f0f540 Mon Sep 17 00:00:00 2001 From: Richard Holland Date: Tue, 19 Sep 2023 11:05:41 +0000 Subject: [PATCH] inline some enum functions --- src/ripple/app/hook/Enum.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/ripple/app/hook/Enum.h b/src/ripple/app/hook/Enum.h index 57addf248..1128f12c1 100644 --- a/src/ripple/app/hook/Enum.h +++ b/src/ripple/app/hook/Enum.h @@ -25,25 +25,31 @@ namespace ripple namespace hook { + // RH TODO: put these somewhere better, and allow rules to be fed in + inline uint32_t maxHookParameterKeySize(void) { return 32; } + inline uint32_t maxHookParameterValueSize(void) { return 256; } + inline uint32_t maxHookStateDataSize(void) { return 256U; } + inline uint32_t maxHookWasmSize(void) { return 0xFFFFU; } + inline uint32_t maxHookChainLength(void) { return 10;