MCPcopy Create free account
hub / github.com/devaccuracy/ledgerforge / ProcessQueuedTransaction

Method ProcessQueuedTransaction

transaction.go:755–761  ·  view source on GitHub ↗

ProcessQueuedTransaction preserves the existing queued-worker behavior while routing the decision through the shared internal transaction executor.

(ctx context.Context, transaction *model.Transaction, hotLane bool)

Source from the content-addressed store, hash-verified

753// ProcessQueuedTransaction preserves the existing queued-worker behavior while routing the
754// decision through the shared internal transaction executor.
755func (l *LedgerForge) ProcessQueuedTransaction(ctx context.Context, transaction *model.Transaction, hotLane bool) (*model.Transaction, error) {
756 result, err := l.processQueuedTransaction(ctx, transaction, hotLane)
757 if err != nil {
758 return nil, err
759 }
760 return result.transaction, nil
761}
762
763// RecordTransaction records a transaction by validating, processing balances, and finalizing the transaction.
764// It starts a tracing span, acquires a lock, and performs the necessary steps to record the transaction.

Callers 1

processTransactionMethod · 0.80

Calls 1

Tested by

no test coverage detected