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

onSignature infinite loop #1989

Closed
crispheaney opened this issue Dec 27, 2023 · 3 comments
Closed

onSignature infinite loop #1989

crispheaney opened this issue Dec 27, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@crispheaney
Copy link

Overview

We use onSignature to listen for tx confirmations

Steps to reproduce

If you have a bot that is sending a lot of tx, especially when network is congested, it is more likely to happen. I think rpc needs to reject initial subscribe.

Description of bug

Calling signatureSubscribe with _rpcWebSocket.call throws an error, it's caught and then _updateSubscription recursively calls itself again, causing an infinite loop.

Attaching screenshot of the logs we're seeing
Screen Shot 2023-12-26 at 9 51 01 PM

@crispheaney crispheaney added the bug Something isn't working label Dec 27, 2023
@steveluscher
Copy link
Collaborator

More importantly, though, let's get you on the new version of web3.js!

Start here: https://www.youtube.com/watch?v=JUJtAPhES5g
More reading: https://github.com/solana-labs/solana-web3.js/blob/master/packages/library/README.md

If you're down, I will give you 1:1 support to upgrade your transaction making/confirming code.

Copy link
Contributor

github-actions bot commented Jan 4, 2024

Because there has been no activity on this issue for 7 days since it was closed, it has been automatically locked. Please open a new issue if it requires a follow up.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants