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

Method validateTxn

transaction.go:381–400  ·  view source on GitHub ↗

validateTxn validates a transaction by checking if its reference has already been used. It starts a tracing span, checks the existence of the transaction reference, and records relevant events and errors. Parameters: - ctx context.Context: The context for the operation. - transaction *model.Transac

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

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Calls 2

StartMethod · 0.45

Tested by 1

BenchmarkValidateTxnFunction · 0.76