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

Method processLineageDebit

lineage.go:396–465  ·  view source on GitHub ↗

processLineageDebit processes a debit transaction for fund lineage tracking. It allocates funds from shadow balances based on the configured allocation strategy. Uses MultiLocker to lock ALL involved shadow balances (source AND destination) atomically, preventing both race conditions and deadlocks f

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

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

processLineageMethod · 0.95

Calls 11

acquireLineageLocksMethod · 0.95
releaseLockMethod · 0.95
getLineageSourcesMethod · 0.95
calculateAllocationMethod · 0.95
processAllocationsMethod · 0.95
GetLineageMappingsMethod · 0.65
StartMethod · 0.45

Tested by

no test coverage detected