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

Add PeerDAS reconstruction metrics #14807

Open
wants to merge 7 commits into
base: peerDAS
Choose a base branch
from

Conversation

KatyaRyazantseva
Copy link

@KatyaRyazantseva KatyaRyazantseva commented Jan 16, 2025

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

  • I have read CONTRIBUTING.md.
  • I have made an appropriate entry to CHANGELOG.md.
  • I have added a description to this PR with sufficient context for reviewers to understand this PR.

@KatyaRyazantseva KatyaRyazantseva requested a review from a team as a code owner January 16, 2025 19:06
@KatyaRyazantseva KatyaRyazantseva requested review from kasey, nalepae and prestonvanloon and removed request for a team January 16, 2025 19:06
@KatyaRyazantseva KatyaRyazantseva changed the title Add reconstruction metrics Add PeerDAS reconstruction metrics Jan 16, 2025
@@ -675,3 +675,12 @@ func RecoverCellsAndProofs(

return recoveredCellsAndProofs, nil
}

func CellsCount(cellsAndProofs []kzg.CellsAndProofs) int {
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants