Skip to content

Commit 5970486

Browse files
[ci] Better comment
Signed-off-by: Raymond Roestenburg <[email protected]>
1 parent 59acab9 commit 5970486

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/scan/src/main/scala/org/lfdecentralizedtrust/splice/scan/store/db/ScanAggregator.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)