File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
apps/scan/src/main/scala/org/lfdecentralizedtrust/splice/scan/store/db Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -934,7 +934,9 @@ final class ScanAggregator(
934934 -- all the parties that were active in the newly aggregated rounds
935935 select party, round as aggr_round, round as active_round from temp_cumulative_totals
936936 union
937- -- adding the lastClosedRound as aggr_round, for parties that were not active but have been aggregated in that round
937+ -- adding the lastClosedRound as aggr_round, for all active_parties after this aggregation.
938+ -- This ensures that the total_amulet_balance is calculated based on all parties that were active up to and including lastClosedRound,
939+ -- even if they were not active in the newly aggregated rounds.
938940 select party,
939941 $lastClosedRound as aggr_round,
940942 closed_round as active_round
You can’t perform that action at this time.
0 commit comments