-
-
Notifications
You must be signed in to change notification settings - Fork 311
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
refactor: use SubnetID
type from CL spec instead of number
#7298
base: unstable
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## unstable #7298 +/- ##
=========================================
Coverage 48.76% 48.76%
=========================================
Files 601 601
Lines 40203 40203
Branches 2061 2061
=========================================
Hits 19607 19607
Misses 20558 20558
Partials 38 38 |
48f6c94
to
67075e9
Compare
57b4614
to
cabb2aa
Compare
Performance Report✔️ no performance regression detected Full benchmark results
|
@@ -146,7 +146,7 @@ function aggregateSignatureInto( | |||
* Format `signature` into an efficient `contribution` to add more signatures in with aggregateSignatureInto() | |||
*/ | |||
function signatureToAggregate( | |||
subnet: number, | |||
subnet: Subnet, |
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.
Should this be SubnetID ?
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.
so the CL spec only uses the SubnetID
for attestation and blob sidecar subnets, for sync committee we have SubcommitteeIndex
(aliased to Subnet
above) which is equal the subnet id
Motivation
Makes it easier to compare our implementation against CL spec
Description
Use
SubnetID
type from CL spec instead ofnumber
From specs/phase0/p2p-interface.md?plain=1#L182
SubnetID
uint64
Depends on #7297