Skip to content

fix: Ensure staking-payouts depth integrates with the relay chain post AHM#1718

Merged
TarikGul merged 6 commits into
masterfrom
tg-payouts
Aug 4, 2025
Merged

fix: Ensure staking-payouts depth integrates with the relay chain post AHM#1718
TarikGul merged 6 commits into
masterfrom
tg-payouts

Conversation

@TarikGul

@TarikGul TarikGul commented Jul 28, 2025

Copy link
Copy Markdown
Member

Currently this ensures that sidecar integrates with the relay chain when connected to AH, and using a depth of greater than 1 (up to 84).

rel: #1693

^ This is just a introduction PR - once paritytech/polkadot-sdk#9292 is finished and added to the runtime we should add functionality that says - if the values are not hardcoded we will fetch them.

How this works:

If the migration is finished at asset hub block 100, the era is 9, and the depth is 84. Sidecar will query the first era at 100 for staking and get the remaining 83 eras from the relay chain.

@TarikGul TarikGul requested a review from a team as a code owner July 28, 2025 17:10

@filvecchiato filvecchiato 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.

Approving as code looks good, just not sure if the docs need updating

Comment thread src/controllers/accounts/AccountsStakingPayoutsController.ts
@TarikGul TarikGul merged commit 2e4ea42 into master Aug 4, 2025
20 of 21 checks passed
@TarikGul TarikGul deleted the tg-payouts branch August 4, 2025 16:10
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.

3 participants