-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Add PeerDAS reconstruction metrics #14807
base: peerDAS
Are you sure you want to change the base?
Add PeerDAS reconstruction metrics #14807
Conversation
beacon-chain/core/peerdas/helpers.go
Outdated
@@ -675,3 +675,12 @@ func RecoverCellsAndProofs( | |||
|
|||
return recoveredCellsAndProofs, nil | |||
} | |||
|
|||
func CellsCount(cellsAndProofs []kzg.CellsAndProofs) int { |
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 only used in reconstructDataColumns
. Could you move it in the corresponding file and make it private?
Also, the range
expression you use make a copy of the cells and proofs, which are quite heavy.
https://go.dev/tour/moretypes/16
It would be better to use the i++
version of the loop which does not copy.
What type of PR is this?
Feature
What does this PR do? Why is it needed?
This PR adds reconstruction metrics align with the PeerDAS metrics specs:
beacon_data_availability_reconstructed_columns_total
beacon_data_availability_reconstruction_time_milliseconds
Which issues(s) does this PR fix?
Fixes (partially) #14129
Other notes for review
Acknowledgements