mirror of
https://github.com/Xahau/xahaud.git
synced 2025-11-27 22:15:49 +00:00
fix for #39
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user