Skip to content

Gloas ptc duties beacon node response#8415

Open
shane-moore wants to merge 4 commits intosigp:gloas-validatorfrom
shane-moore:gloas-ptc-duties-beacon-node-response
Open

Gloas ptc duties beacon node response#8415
shane-moore wants to merge 4 commits intosigp:gloas-validatorfrom
shane-moore:gloas-ptc-duties-beacon-node-response

Conversation

@shane-moore
Copy link
Member

@shane-moore shane-moore commented Nov 14, 2025

Changes

  • BN will have to be able to respond to VC requests for ptc duties for current or next epoch, per beacon api spec's POST /eth/v1/validator/duties/ptc/{epoch}
  • This PR uses vanilla get_ptc to calculate ptc members for a given slot, which is heavy computation when calculating ptc duties for all validators for an entire epoch. But this should be fine for devnet-0
  • Future optimizations will be to add in my ptc_cache PR, which allows us cache ptc committees for current/previous/next epoch. Additionally, we'll want out to build out a cache similar to shuffling_cache that allows us to cache instances of the ptc_cache depending upon the current fork choice head (shuffling Id) so that we don't have to recompute ptc_cache when fork choice switches heads and then back again, for example

@chong-he chong-he added the gloas label Nov 15, 2025
@shane-moore shane-moore changed the base branch from gloas-envelope-processing to gloas-validator December 2, 2025 02:16
@shane-moore shane-moore force-pushed the gloas-ptc-duties-beacon-node-response branch from 1de281c to 782c4c4 Compare December 2, 2025 02:38
@shane-moore shane-moore force-pushed the gloas-ptc-duties-beacon-node-response branch 3 times, most recently from 83ea28b to 7d071c9 Compare December 18, 2025 02:21
@shane-moore shane-moore force-pushed the gloas-ptc-duties-beacon-node-response branch from 7d071c9 to 9634777 Compare December 18, 2025 02:27
@michaelsproul michaelsproul mentioned this pull request Jan 20, 2026
24 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants