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

feat(abciclient): support timeouts in abci calls #749

Merged
merged 13 commits into from
Mar 7, 2024

Conversation

lklimek
Copy link
Collaborator

@lklimek lklimek commented Mar 6, 2024

Issue being fixed or feature implemented

Some transactions, like CheckTx, should time out if not processed within some reasonable time period.
This helps avoid system overload.

What was done?

In ABCI Socket Client, added a context which is checked before sending message. If message was waiting too long in a queue and context expired, error is returned.

CheckTX in gRPC (*BroadcastTx) and p2p was limited to 1 second.

How Has This Been Tested?

GHA + testing on devnet.

Breaking Changes

Some GRPC and P2P requests can return context canceled error.

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

@lklimek lklimek merged commit 608bc11 into v0.14-dev Mar 7, 2024
15 checks passed
@lklimek lklimek deleted the feat/checktx-timeout branch March 13, 2024 14:17
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.

None yet

2 participants