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

Method applyTransactionToBalances

transaction.go:412–445  ·  view source on GitHub ↗

applyTransactionToBalances applies a transaction to the provided balances. It starts a tracing span, calculates new balances, and updates the balances based on the transaction status. Parameters: - ctx context.Context: The context for the operation. - balances []*model.Balance: A slice of Balance m

(ctx context.Context, balances []*model.Balance, transaction *model.Transaction)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

processBalancesMethod · 0.95

Calls 6

UpdateBalancesFunction · 0.92
CommitInflightDebitMethod · 0.80
CommitInflightCreditMethod · 0.80
RollbackInflightDebitMethod · 0.80
StartMethod · 0.45

Tested by

no test coverage detected