Skip to content

Commit b5f6205

Browse files
committed
fix for XRPLF#39
1 parent 7abfc03 commit b5f6205

File tree

3 files changed

+0
-9
lines changed

3 files changed

+0
-9
lines changed

src/ripple/app/hook/applyHook.h

-3
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,6 @@ namespace hook
8989
namespace hook_api
9090
{
9191

92-
#define TER_TO_HOOK_RETURN_CODE(x)\
93-
(((TERtoInt(x)) << 16)*-1)
94-
9592
// for debugging if you want a lot of output change to 1
9693
#define HOOK_DBG 0
9794
#define DBG_PRINTF if (HOOK_DBG) printf

src/ripple/app/hook/impl/applyHook.cpp

-5
Original file line numberDiff line numberDiff line change
@@ -2030,11 +2030,6 @@ DEFINE_HOOK_FUNCTION(
20302030
: const_cast<ripple::STTx&>(applyCtx.tx).downcast<ripple::STObject>()
20312031
);
20322032

2033-
auto const& txID =
2034-
hookCtx.emitFailure
2035-
? applyCtx.tx.getFieldH256(sfTransactionHash)
2036-
: applyCtx.tx.getTransactionID();
2037-
20382033
hookCtx.slot.emplace( std::pair<uint32_t, hook::SlotEntry> { slot_into, hook::SlotEntry {
20392034
.storage = st_tx,
20402035
.entry = 0

src/ripple/app/tx/impl/Invoke.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ Invoke::preflight(PreflightContext const& ctx)
3838
return ret;
3939

4040
auto& tx = ctx.tx;
41-
auto& j = ctx.j;
4241

4342
if (tx.getFieldVL(sfBlob).size() > (128*1024))
4443
return temMALFORMED;

0 commit comments

Comments
 (0)