mirror of
https://github.com/Xahau/xahaud.git
synced 2026-04-29 15:37:46 +00:00
Rename the existing ttEXPORT pseudo-tx to ttEXPORT_FINALIZE (type 90) to make room for a user-submittable ttEXPORT (type 91). ttEXPORT allows non-hook users to submit export transactions directly, creating the same ltEXPORTED_TXN entries that the hook xport() API creates inline. Extract shared logic into ExportLedgerOps.h: - createExportedTxn(): creates ltEXPORTED_TXN, enforces directory cap - validateNetworkID(): self-target and unconfigured guards - validateExportAccount(): account ownership check Both the hook API (HookAPI.cpp) and the Export transactor now call into ExportLedgerOps, eliminating duplicated validation and ledger mutation code.