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

Evict recentlyAccepted blocks based on wall-clock time #3460

Merged
merged 6 commits into from
Oct 17, 2024

Conversation

iansuvak
Copy link
Contributor

@iansuvak iansuvak commented Oct 10, 2024

Why this should be merged

In combination with ACP-115 this would remove requirements for issuing dummy transaction on P-Chain for ACP-77 flows on networks that don't have frequent P-Chain block production like Fuji and Devnet.

How this works

Changes RWLock to Lock and evicts nodes based on wall-clock time on all operations.
The Window is used here in validators.Manager and the change affects the output of Manager.GetMinimumHeight

How this was tested

Modified existing test cases from negative to positive cases since the behavior of the window is changing here.

@iansuvak iansuvak force-pushed the evict-blocks-wallclock branch from 123b8dd to f492247 Compare October 11, 2024 13:20
@iansuvak iansuvak self-assigned this Oct 11, 2024
utils/window/window_test.go Outdated Show resolved Hide resolved
@iansuvak iansuvak marked this pull request as ready for review October 11, 2024 19:29
@StephenButtolph StephenButtolph added this to the v1.11.13 milestone Oct 17, 2024
@StephenButtolph StephenButtolph added this pull request to the merge queue Oct 17, 2024
Merged via the queue into master with commit c60e8a2 Oct 17, 2024
23 checks passed
@StephenButtolph StephenButtolph deleted the evict-blocks-wallclock branch October 17, 2024 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants