Skip to content

SvApp: For TBA use total app activity in SummarizingMiningRoundTrigger#5903

Open
dfordivam wants to merge 12 commits into
mainfrom
dfordivam/cip-104-summarizing-totals
Open

SvApp: For TBA use total app activity in SummarizingMiningRoundTrigger#5903
dfordivam wants to merge 12 commits into
mainfrom
dfordivam/cip-104-summarizing-totals

Conversation

@dfordivam

@dfordivam dfordivam commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Fixes #5849

Pull Request Checklist

Cluster Testing

  • If a cluster test is required, comment /cluster_test on this PR to request it, and ping someone with access to the DA-internal system to approve it.
  • If an upgrade test is required, comment /upgrade_test on this PR to request it, and ping someone with access to the DA-internal system to approve it.
  • If a hard-migration test is required (from the latest release), comment /hdm_test on this PR to request it, and ping someone with access to the DA-internal system to approve it.
  • If a logical synchronizer upgrade test is required (from canton-3.5), comment /lsu_test on this PR to request it, and ping someone with access to the DA-internal system to approve it.

PR Guidelines

  • Include any change that might be observable by our partners or affect their deployment in the release notes.
  • Specify fixed issues with Fixes #n, and mention issues worked on using #n
  • Include a screenshot for frontend-related PRs - see README or use your favorite screenshot tool

Merge Guidelines

  • Make the git commit message look sensible when squash-merging on GitHub (most likely: just copy your PR description).

@dfordivam

Copy link
Copy Markdown
Contributor Author

@meiersi-da This draft PR is ready for a first look. The CI won't pass on this yet, as it require TBA bootstrap support.

@meiersi-da meiersi-da left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Looks good.

Comment thread apps/app/src/test/scala/org/lfdecentralizedtrust/splice/util/TimeTestUtil.scala Outdated
@dfordivam dfordivam force-pushed the dfordivam/cip-104-summarizing-totals branch from 5f2b235 to 610cfaa Compare June 16, 2026 02:36
@dfordivam dfordivam marked this pull request as ready for review June 16, 2026 05:08
@dfordivam dfordivam force-pushed the dfordivam/cip-104-summarizing-totals branch from 38588fe to 8f5ac9e Compare June 16, 2026 05:17
dfordivam added 12 commits June 16, 2026 06:03
Signed-off-by: Divam <dfordivam@gmail.com>
Signed-off-by: Divam <dfordivam@gmail.com>
Signed-off-by: Divam <dfordivam@gmail.com>
Signed-off-by: Divam <dfordivam@gmail.com>
Signed-off-by: Divam <dfordivam@gmail.com>
Signed-off-by: Divam <dfordivam@gmail.com>
Signed-off-by: Divam <dfordivam@gmail.com>
Signed-off-by: Divam <dfordivam@gmail.com>
Signed-off-by: Divam <dfordivam@gmail.com>
Signed-off-by: Divam <dfordivam@gmail.com>
Signed-off-by: Divam <dfordivam@gmail.com>
@dfordivam dfordivam force-pushed the dfordivam/cip-104-summarizing-totals branch from 8f5ac9e to c1574c8 Compare June 16, 2026 06:04
@dfordivam

Copy link
Copy Markdown
Contributor Author

@meiersi-da This PR is ready for review!

@meiersi-da meiersi-da left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Good work!

type: integer
format: int64
total_app_reward_minting_allowance:
type: string

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
type: string
type: string
description: The total of all minting allowances granted to app providers in this round.

total_app_reward_minting_allowance:
type: string
total_app_reward_thresholded:
type: string

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
type: string
type: string
description: Total amount of minting allowances that fell below the configured app reward threshold and was thus burned.

total_app_reward_thresholded:
type: string
total_app_reward_unclaimed:
type: string

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
type: string
type: string
description: Total amount of app rewards which could not be attributed to app providers in this round because of limit on app rewards per activity (aka the app rewards cap).

// We should never hit this, as both activity totals and round
// totals are added in a single DB Tx
ScanResource.GetRewardAccountingActivityTotalsResponse.OK(
definitions.GetRewardAccountingActivityTotalsResponse(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

consider defining shared constants for undetermined and cannotProvide

response <- bftScan.getRewardAccountingActivityTotals(round)
} yield response match {
case RewardAccountingActivityTotalsOk(ok) =>
logger.info(s"Obtained the reward accounting totals for round $round via BFT read.")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please also add a metric for this one alongside the ones that were added recently for the other two calls.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SvApp: Use total app activity in SummarizingMiningRoundTrigger

2 participants