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)
| 753 | // ProcessQueuedTransaction preserves the existing queued-worker behavior while routing the |
| 754 | // decision through the shared internal transaction executor. |
| 755 | func (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. |
no test coverage detected