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

Pass app version to CreateCommitment and NewMsgPayForBlobs #37

Closed
evan-forbes opened this issue Nov 20, 2023 · 5 comments
Closed

Pass app version to CreateCommitment and NewMsgPayForBlobs #37

evan-forbes opened this issue Nov 20, 2023 · 5 comments
Assignees

Comments

@evan-forbes
Copy link
Member

When creating PFBs, and specifically PFB commitments, we will need to pass the app version to provide enough context for the application to generate the correct commitment for that version.

@rootulp
Copy link
Collaborator

rootulp commented Feb 22, 2024

Is this still necessary? CreateCommitment moved to the go-square repo and now accepts a param for subtreeRootThreshold which can vary based on app version.

@evan-forbes
Copy link
Member Author

that's a good question, I'm not sure!

it might be best to pass app version to avoid breaking the api for those functions in the future when things change. Either way, we should move this to that repo

@evan-forbes evan-forbes transferred this issue from celestiaorg/celestia-app Feb 24, 2024
@evan-forbes
Copy link
Member Author

Blocked on authored blobs, as that is the next change that could require this, at least for creating blobTxs, but probably not when we actually call create commitment. We might want to pass the app version anyway to avoid API breaks in the future when we inevitably do need the app version.

@evan-forbes
Copy link
Member Author

evan-forbes commented Jun 10, 2024

@cmwaters quick questions: should we consider this part of authored blobs? if so, can we add this to the tracking for authored blobs? 🙏

@cmwaters
Copy link
Collaborator

Is this still necessary? CreateCommitment moved to the go-square repo and now accepts a param for subtreeRootThreshold which can vary based on app version.

This is correct. CreateCommitment can now handle changes to the subtreeRootThreshold that was hardcoded before. There is nothing else that is currently hardcoded. I would also refrain from adding app version to the go-square repo. I would prefer if it were agnostic to it and celestia-app would define the parameters but perhaps I could be proven wrong.

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

No branches or pull requests

3 participants