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

cache signatures only in acp118 handler #3474

Merged
merged 4 commits into from
Oct 17, 2024
Merged

Conversation

ceyonur
Copy link
Contributor

@ceyonur ceyonur commented Oct 15, 2024

Why this should be merged

Cache might be needed to shared with other components. Currently we cache whole proto signature response, a plain signature caching can be more straightforward to be returned from shared cache for other components.

For instance Subnet-EVM can use this signature cache in API calls and in legacy p2p handler.

How this works

Caches and returns direct signature bytes rather than proto SignatureResponse

How this was tested

Added UT

@ceyonur ceyonur marked this pull request as ready for review October 15, 2024 20:58
@ceyonur ceyonur requested a review from joshua-kim as a code owner October 15, 2024 20:58
network/p2p/acp118/handler_test.go Outdated Show resolved Hide resolved
network/p2p/acp118/handler.go Outdated Show resolved Hide resolved
@StephenButtolph StephenButtolph added this to the v1.11.13 milestone Oct 17, 2024
@StephenButtolph StephenButtolph added cleanup Code quality improvement acp118 labels Oct 17, 2024
@StephenButtolph StephenButtolph added this pull request to the merge queue Oct 17, 2024
Merged via the queue into master with commit abf76fd Oct 17, 2024
23 checks passed
@StephenButtolph StephenButtolph deleted the cache-only-signatures branch October 17, 2024 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
acp118 cleanup Code quality improvement
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants