Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions ocp/balance/calculator.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ func CalculateFromCache(ctx context.Context, data ocp_data.Provider, tokenAccoun
//
// todo: add a batching variant
func CalculateFromBlockchain(ctx context.Context, data ocp_data.Provider, tokenAccount *common.Account) (uint64, Source, error) {
tracer := metrics.TraceMethodCall(ctx, metricsPackageName, "CalculateFromBlockchain")
tracer.AddAttribute("account", tokenAccount.PublicKey().ToBase58())
defer tracer.End()

var cachedQuarks uint64
var cachedSlot uint64
var cachedUpdateTs time.Time
Expand Down
Loading