Additional support for HookDefinition, HookState, ImportVLSequence at fixPreviousTxnID Amendment

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

View File

@@ -135,8 +135,16 @@ STLedgerEntry::getJson(JsonOptions options) const
bool
STLedgerEntry::isThreadedType(Rules const& rules) const
{
static constexpr std::array<LedgerEntryType, 5> newPreviousTxnIDTypes = {
ltDIR_NODE, ltAMENDMENTS, ltFEE_SETTINGS, ltNEGATIVE_UNL, ltAMM};
static constexpr std::array<LedgerEntryType, 8> newPreviousTxnIDTypes = {
ltDIR_NODE,
ltAMENDMENTS,
ltFEE_SETTINGS,
ltNEGATIVE_UNL,
ltAMM,
ltHOOK_STATE,
ltHOOK_DEFINITION,
ltIMPORT_VLSEQ,
};
// Exclude PrevTxnID/PrevTxnLgrSeq if the fixPreviousTxnID amendment is not
// enabled and the ledger object type is in the above set
bool const excludePrevTxnID = !rules.enabled(fixPreviousTxnID) &&