This commit is contained in:
Richard Holland
2023-03-07 14:23:32 +00:00
parent 7abfc033c0
commit b5f6205f4d
3 changed files with 0 additions and 9 deletions

View File

@@ -89,9 +89,6 @@ namespace hook
namespace hook_api
{
#define TER_TO_HOOK_RETURN_CODE(x)\
(((TERtoInt(x)) << 16)*-1)
// for debugging if you want a lot of output change to 1
#define HOOK_DBG 0
#define DBG_PRINTF if (HOOK_DBG) printf

View File

@@ -2030,11 +2030,6 @@ DEFINE_HOOK_FUNCTION(
: const_cast<ripple::STTx&>(applyCtx.tx).downcast<ripple::STObject>()
);
auto const& txID =
hookCtx.emitFailure
? applyCtx.tx.getFieldH256(sfTransactionHash)
: applyCtx.tx.getTransactionID();
hookCtx.slot.emplace( std::pair<uint32_t, hook::SlotEntry> { slot_into, hook::SlotEntry {
.storage = st_tx,
.entry = 0

View File

@@ -38,7 +38,6 @@ Invoke::preflight(PreflightContext const& ctx)
return ret;
auto& tx = ctx.tx;
auto& j = ctx.j;
if (tx.getFieldVL(sfBlob).size() > (128*1024))
return temMALFORMED;