prepareQueuedBatchTransaction performs the per-transaction work inside a coalesced batch: hooks, reference validation, in-memory balance application, and persistence shaping.
(ctx context.Context, span trace.Span, txn *model.Transaction, balancesByID map[string]*model.Balance, preHooks []*ledgerforgehooks.Hook, prefetchedReferences, existingReferences, batchReferences map[string]struct{})
source not stored for this graph (policy: none)
no test coverage detected