Skip to content

Conversation

sigurpol
Copy link
Contributor

Create a TS test validating all events occurring during a whole staking era, using 2 archive-mode databases (one for RC, one for AH) provided as input.
The archive needs to accommodate at least an era and must be taken at the end of a given era to allow to inspect all events occurred during it.

@sigurpol sigurpol marked this pull request as draft October 15, 2025 06:52
@sigurpol sigurpol force-pushed the staking_era_check_events branch from fd4fa68 to 262209d Compare October 15, 2025 06:57
Create a TS test validating all events occurring during a whole staking
era, using 2 archive-mode databases (one for RC, one for AH) provided as
input.
The archive needs to accommodate at least an era and  must be taken at
the end of a given era to allow to inspect all events occurred during it.
@sigurpol sigurpol force-pushed the staking_era_check_events branch from 262209d to dfbcb12 Compare October 15, 2025 07:00
Comment on lines +18 to +24
* - pre_check (rc_api_before, ah_api_before):
* APIs loaded from archive snapshots at era end
* Finds the start of era X by searching backwards through the archive
*
* - post_check (rc_api_after, ah_api_after):
* Same APIs (still era end snapshots)
* Validates events from era start to era end
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it's a bit confusing - pre and post checks don't serve it's purpose. We can extract this test into a separate category, like post-AHM staking test.

I'll take care of the structure, calls and jobs.

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.

2 participants