-
Notifications
You must be signed in to change notification settings - Fork 810
Support all validator set diffs by height #4342
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
Conversation
Co-authored-by: Stephen Buttolph <stephen@avalabs.org> Signed-off-by: Geoff Stuart <geoff.vball@gmail.com>
Co-authored-by: Stephen Buttolph <stephen@avalabs.org> Signed-off-by: Geoff Stuart <geoff.vball@gmail.com>
Co-authored-by: Stephen Buttolph <stephen@avalabs.org> Signed-off-by: Geoff Stuart <geoff.vball@gmail.com>
| subnetsMap := m.cfg.Validators.GetAllMaps() | ||
| currentHeight, err := m.getCurrentHeight(ctx) | ||
| return subnetsMap, currentHeight, err |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm assuming it's impossible for the height to advance in between these calls to GetAllMaps and getCurrentHeight, but could someone confirm/explain why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This function is called with the P-chain context lock held
commit 47550e9 Author: Austin Larson <78000745+alarso16@users.noreply.github.com> Date: Mon Sep 29 11:24:22 2025 -0400 Add generics to x/sync (#4275) commit 8b8ac94 Author: Stephen Buttolph <stephen@avalabs.org> Date: Mon Sep 29 11:08:40 2025 -0400 Use `acp226.DelayExcess` rather than `uint64` (#4358) commit 32806e0 Author: Geoff Stuart <geoff.vball@gmail.com> Date: Fri Sep 26 16:40:10 2025 -0400 Support all validator set diffs by height (#4342) Signed-off-by: Geoff Stuart <geoff.vball@gmail.com> Co-authored-by: Stephen Buttolph <stephen@avalabs.org> commit 57a308a Author: Jonathan Oppenheimer <jonathan.oppenheimer@avalabs.org> Date: Fri Sep 26 13:42:10 2025 -0400 Set `activationTime` equal to `upgrade.InitiallyActiveTime` for `propservm` (#4351) Signed-off-by: Jonathan Oppenheimer <147infiniti@gmail.com> Co-authored-by: Stephen Buttolph <stephen@avalabs.org> commit d57e124 Author: Joshua Kim <20001595+joshua-kim@users.noreply.github.com> Date: Fri Sep 26 13:29:20 2025 -0400 Remove UptimeManager#IsConnected (#4333) Signed-off-by: Joshua Kim <20001595+joshua-kim@users.noreply.github.com> commit 0985c16 Author: Geoff Stuart <geoff.vball@gmail.com> Date: Fri Sep 26 11:19:34 2025 -0400 Implement GetProposedHeight API in Proposervm (#4222) Signed-off-by: Michael Kaplan <55204436+michaelkaplan13@users.noreply.github.com> Co-authored-by: ylg <yang.linguan@avalabs.org> Co-authored-by: Michael Kaplan <55204436+michaelkaplan13@users.noreply.github.com> Co-authored-by: Stephen Buttolph <stephen@avalabs.org> Co-authored-by: Michael Kaplan <michael@avalabs.org> commit dfdd6a7 Author: aaronbuchwald <aaron.buchwald56@gmail.com> Date: Fri Sep 26 10:07:08 2025 -0400 Update daily re-execution benchmark (#4340) commit d8aa95f Author: letreturn <letreturn@outlook.com> Date: Fri Sep 26 22:12:02 2025 +0800 Typo Fixes (#4353) Signed-off-by: letreturn <letreturn@outlook.com> commit dbbfa66 Author: rodrigo <77309055+RodrigoVillar@users.noreply.github.com> Date: Fri Sep 26 00:02:29 2025 -0400 fix(load): only modify non-reserved slots (#4283) commit d0bcd73 Author: Stephen Buttolph <stephen@avalabs.org> Date: Thu Sep 25 16:46:19 2025 -0400 Replace `mockable.MaxTime` with `upgrade.UnscheduledActivationTime` (#4322) commit 23c5718 Author: Stephen Buttolph <stephen@avalabs.org> Date: Thu Sep 25 15:20:33 2025 -0400 Refactor Warp Verification Tests (#4335) commit cc72910 Author: Stephen Buttolph <stephen@avalabs.org> Date: Thu Sep 25 15:16:19 2025 -0400 Remove premature optimization in validator manager (#4346) commit 36baa05 Author: Austin Larson <78000745+alarso16@users.noreply.github.com> Date: Thu Sep 25 14:38:53 2025 -0400 Granite ACP-176 (#4336) commit d74d90c Author: rodrigo <77309055+RodrigoVillar@users.noreply.github.com> Date: Thu Sep 25 14:38:42 2025 -0400 refactor(metervm): remove mockable clock (#4338) Signed-off-by: Joshua Kim <20001595+joshua-kim@users.noreply.github.com>
Why this should be merged
Closes #4270
Copy of #4307 rebased onto
masterHow this works
Creates a new index for the validator diffs DB. We now key diffs by
height, subnetID, nodeIDin addition to the previous index ofsubnetID, height, nodeID. This will allow us to apply diffs for all validators of all subnets at a given height.How this was tested
Need to be documented in RELEASES.md?
N/A