Additional support for HookDefinition, HookState, ImportVLSequence at fixPreviousTxnID Amendment

This commit is contained in:
tequ
2025-06-23 17:59:40 +09:00
parent 65f4945f22
commit 6728221831
2 changed files with 16 additions and 2 deletions

View File

@@ -89,6 +89,8 @@ LEDGER_ENTRY(ltHOOK_DEFINITION, 'D', HookDefinition, hook_definition, ({
{sfReferenceCount, soeREQUIRED},
{sfFee, soeREQUIRED},
{sfHookCallbackFee, soeOPTIONAL},
{sfPreviousTxnID, soeOPTIONAL},
{sfPreviousTxnLgrSeq, soeOPTIONAL},
}))
/** A ledger object containing a hook-emitted transaction from a previous hook execution.
@@ -118,6 +120,8 @@ LEDGER_ENTRY(ltHOOK, 'H', Hook, hook, ({
LEDGER_ENTRY(ltIMPORT_VLSEQ, 0x0049, ImportVLSequence, import_vlseq, ({
{sfPublicKey, soeREQUIRED},
{sfImportSequence, soeREQUIRED},
{sfPreviousTxnID, soeOPTIONAL},
{sfPreviousTxnLgrSeq, soeOPTIONAL},
}))
/** The ledger object which tracks the current negative UNL state.
@@ -439,6 +443,8 @@ LEDGER_ENTRY(ltHOOK_STATE, 0x0076, HookState, hook_state, ({
{sfOwnerNode, soeREQUIRED},
{sfHookStateKey, soeREQUIRED},
{sfHookStateData, soeREQUIRED},
{sfPreviousTxnID, soeOPTIONAL},
{sfPreviousTxnLgrSeq, soeOPTIONAL},
}))
/** A ledger object describing a single unidirectional XRP payment channel.