Skip to content

fix: Wrap all RPC methods with rate-limit logic - #615

Open
p70436464-prog wants to merge 1 commit into
conduit-protocol:mainfrom
p70436464-prog:fix-rpc-methods-wrap
Open

fix: Wrap all RPC methods with rate-limit logic#615
p70436464-prog wants to merge 1 commit into
conduit-protocol:mainfrom
p70436464-prog:fix-rpc-methods-wrap

Conversation

@p70436464-prog

Copy link
Copy Markdown

Closes #510

Problem:
Previously, only an explicitly defined allow-list of ASYNC_METHODS (such as getAccount, getEvents, simulateTransaction, etc.) was wrapped with rate-limit backoff and error-handling logic inside createRpcServer. Any other SDK method calling SorobanRpc.Server bypassed this logic silently.

Solution:
Replaced the ASYNC_METHODS allow-list with an EXCLUDED_METHODS block-list (excluding only the constructor). Now, all RPC capability functions accessed via the proxy are automatically wrapped with rate-limit resilience, backoff handling, and standard RpcServiceUnavailableError mapping.

@drips-wave

drips-wave Bot commented Aug 31, 2026

Copy link
Copy Markdown

@p70436464-prog Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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.

Bug: createRpcServer retry/backoff proxy only wraps 7 hard-coded method names

1 participant