Skip to content

Conversation

@kderme
Copy link
Contributor

@kderme kderme commented Dec 4, 2025

Fixes #1678
Supersedes #1796
Depends on #2024

On each epoch boundary dbsync will compare the expected and actual number of epoch_stake. If it doesn't match it insert all entries again (after creating manual unique keys contraints)

This is on preprod:

[db-sync-node:Info:147] [2025-12-04 23:19:24.77 UTC] Removing 0 rewards and 1 orphaned rewards
[db-sync-node:Info:147] [2025-12-04 23:19:24.77 UTC] Validate Epoch Rewards: total rewards that become spendable in epoch 28 are 0
[db-sync-node:Warning:147] [2025-12-04 23:19:24.77 UTC] validateEpochStake: epoch stake in epoch 28 expected total of 3 but got 0
[db-sync-node:Info:147] [2025-12-04 23:19:24.77 UTC] Inserted 3 EpochStake for EpochNo 28
[db-sync-node:Info:147] [2025-12-04 23:19:24.77 UTC] Validate Epoch Stake: total entries in epoch 28 are 3

@kderme kderme requested a review from a team as a code owner December 4, 2025 23:23
@kderme kderme marked this pull request as draft December 4, 2025 23:26
@kderme kderme force-pushed the kderme/fix-epoch-stake branch 2 times, most recently from 674149d to 926ab41 Compare December 12, 2025 01:12
@kderme kderme marked this pull request as ready for review December 12, 2025 09:51
@kderme kderme force-pushed the kderme/fix-epoch-stake branch 2 times, most recently from 6786112 to 8f42113 Compare December 12, 2025 11:24
Caused by bug #1678

Signed-off-by: Kostas Dermentzis <kostas.dermentzis@iohk.io>
Fixes #1678

Signed-off-by: Kostas Dermentzis <kostas.dermentzis@iohk.io>
Signed-off-by: Kostas Dermentzis <kostas.dermentzis@iohk.io>
Signed-off-by: Kostas Dermentzis <kostas.dermentzis@iohk.io>
@kderme kderme force-pushed the kderme/fix-epoch-stake branch from 8f42113 to 23fbbbe Compare December 12, 2025 11:26
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.

epoch_stake missing entries in not dense epoch

3 participants