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 all ValidateBasic methods #4088

Open
evan-forbes opened this issue Dec 6, 2024 · 2 comments
Open

Pass app version to all ValidateBasic methods #4088

evan-forbes opened this issue Dec 6, 2024 · 2 comments
Labels
WS: Maintenance 🔧 includes bugs, refactors, flakes, and tech debt etc

Comments

@evan-forbes
Copy link
Member

Stateless verification will eventually also have to be dependent upon app version. If we had this ability now, it would trivial to add a state less check on PFBs and their size ref #4084

@evan-forbes evan-forbes added the WS: Maintenance 🔧 includes bugs, refactors, flakes, and tech debt etc label Dec 6, 2024
@rootulp
Copy link
Collaborator

rootulp commented Dec 6, 2024

Stateless verification will eventually also have to be dependent upon app version.

This seems contradictory because if we pass app version to ValidateBasic then those checks become stateful. The checks need to access state to get the current app version.

How do we keep the checks stateless if they need to fetch the current app version?

@evan-forbes
Copy link
Member Author

This seems contradictory because if we pass app version to ValidateBasic then those checks become stateful

stateless was the wrong word, the important thing is that we need to be able to change logic that is typically included in ValidateBasic depending on the app version. The routing has to occur somewhere.

We could be in a different method that takes the app version, but I think keeping the logic with the other message validation logic makes sense.

We could also cut v2 of the proto type with identical fields just to change validate basic method and route message creation based on app version client side.

something else maybe?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WS: Maintenance 🔧 includes bugs, refactors, flakes, and tech debt etc
Projects
None yet
Development

No branches or pull requests

2 participants