Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incentives: Account rewinding does not account for participation rewards #1625

Closed
jasonpaulos opened this issue Aug 15, 2024 · 1 comment · Fixed by #1630
Closed

Incentives: Account rewinding does not account for participation rewards #1625

jasonpaulos opened this issue Aug 15, 2024 · 1 comment · Fixed by #1630
Assignees
Labels
new-feature-request Feature request that needs triage

Comments

@jasonpaulos
Copy link
Contributor

Problem

Participation incentives are an upcoming feature, and incentives are not transferred by transactions.

This will be a problem for the account rewinding logic, since the AccountAtRound has no way of accounting for participation rewards:

func AccountAtRound(ctx context.Context, account models.Account, round uint64, db idb.IndexerDb) (acct models.Account, err error) {

Solution

While modifying the AccountAtRound function to properly account for participation rewards is a valid solution, it's worth considering whether it makes more sense to disable/remove this feature, or adjust our documentation/messaging around the expectations here. This feature has not been updated in a long time, and there are many other scenarios it cannot support.

Generally speaking, failing is better than producing incorrect information.

Dependencies

n/a

Urgency

Good to address before incentives are active on mainnet.

@jasonpaulos jasonpaulos added the new-feature-request Feature request that needs triage label Aug 15, 2024
@gmalouf gmalouf changed the title Account rewinding does not account for participation rewards Incentives: Account rewinding does not account for participation rewards Aug 16, 2024
@gmalouf gmalouf self-assigned this Aug 28, 2024
@gmalouf
Copy link
Contributor

gmalouf commented Sep 5, 2024

Noting: Check SDKs for support/use of account rewind and update there prior to releasing indexer breaking change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-feature-request Feature request that needs triage
Projects
None yet
2 participants