Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Entity Total Received / Total Spent computation: distinguish between within-cluster and external transactions #34

Closed
behas opened this issue Nov 4, 2020 · 2 comments
Assignees

Comments

@behas
Copy link
Member

behas commented Nov 4, 2020

At the moment total received and total spent are computed by summing over all incoming and outgoing transactions of an entity. However, this also includes within-cluster transactions, i.e. transactions that have input and output addresses belonging to the same cluster.

Proposed solution: compute two different values for total received and spent:

  • total_received_all -> considers all transactions, also within-cluster transactions
  • total_received -> considers only transactions from other entities
    ...the same for total_spent
@behas
Copy link
Member Author

behas commented Jun 22, 2023

I am getting more and more convinced that total received and total spent of clusters should exclude intr-cluster transfers.

defconst added a commit that referenced this issue Jul 2, 2023
@defconst
Copy link
Member

defconst commented Jul 10, 2023

Added two new columns Cassandra schema with adjusted values:

    total_received_adj FROZEN <currency>,
    total_spent_adj FROZEN <currency>,

(_adj -> adjusted)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants