Skip to content

Add a mutex to backend ledger transaction_count and operation_count sums #286

Description

@acharb

when looking at the ledgers endpoints for dashboard-v2 and dashboard v1 (in prod now) I noticed the tx and op count data are slightly different. I'm guessing it's due to using data in memory as part of the sum equation in the updateCache method, in which case a mutex may help (maybe async-mutex). But some further investigation is probably needed.

Not high priority, they're all fairly close (~95% or higher), and this data is mostly used for visually comparing days in the UI, so data doesn't need to be exact.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions