diff --git a/src/ripple/app/hook/applyHook.h b/src/ripple/app/hook/applyHook.h index 5233f7f96..be1c2951b 100644 --- a/src/ripple/app/hook/applyHook.h +++ b/src/ripple/app/hook/applyHook.h @@ -92,7 +92,7 @@ namespace hook_api (((TERtoInt(x)) << 16)*-1) // for debugging if you want a lot of output change these to if (1) -#define HOOK_DBG 1 +#define HOOK_DBG 0 #define DBG_PRINTF if (HOOK_DBG) printf #define DBG_FPRINTF if (HOOK_DBG) fprintf diff --git a/src/ripple/app/tx/impl/SetHook.cpp b/src/ripple/app/tx/impl/SetHook.cpp index a12ecccef..1849112cc 100644 --- a/src/ripple/app/tx/impl/SetHook.cpp +++ b/src/ripple/app/tx/impl/SetHook.cpp @@ -388,7 +388,7 @@ SetHook::validateHookSetEntry(SetHookCtx& ctx, STObject const& hookSetObj) return false; } - // validate api version, if provided + // ensure api version is provided if (!hookSetObj.isFieldPresent(sfHookApiVersion)) { JLOG(ctx.j.trace()) @@ -1093,7 +1093,6 @@ SetHook::setHook() if (hookSetObj) op = inferOperation(hookSetObj->get()); - // these flags are not able to be passed onto the ledger object int newFlags = 0; if (flags) @@ -1106,15 +1105,6 @@ SetHook::setHook() newFlags -= hsfNSDELETE; } - - printf("HookSet operation %d: %s\n", hookSetNumber, - (op == hsoNSDELETE ? "hsoNSDELETE" : - (op == hsoDELETE ? "hsoDELETE" : - (op == hsoCREATE ? "hsoCREATE" : - (op == hsoINSTALL ? "hsoINSTALL" : - (op == hsoUPDATE ? "hsoUPDATE" : - (op == hsoNOOP ? "hsoNOOP" : "hsoINALID"))))))); - // if an existing hook exists at this position in the chain then extract the relevant fields if (oldHook && oldHook->get().isFieldPresent(sfHookHash)) { diff --git a/src/ripple/protocol/TER.h b/src/ripple/protocol/TER.h index 164c7ecce..98139e74b 100644 --- a/src/ripple/protocol/TER.h +++ b/src/ripple/protocol/TER.h @@ -341,9 +341,9 @@ TERtoInt(TECcodes v) template