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

Method processBalances

transaction.go:1243–1255  ·  view source on GitHub ↗

processBalances processes the source and destination balances by applying the transaction in-memory. It starts a tracing span, applies the transaction to the balances, and records relevant events and errors. Note: The actual database update of balances is done atomically with the transaction persist

(ctx context.Context, transaction *model.Transaction, sourceBalance, destinationBalance *model.Balance)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

Calls 3

logAndRecordErrorMethod · 0.95
StartMethod · 0.45

Tested by

no test coverage detected