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

block polling interval #388

Open
gherkins opened this issue Apr 9, 2024 · 5 comments
Open

block polling interval #388

gherkins opened this issue Apr 9, 2024 · 5 comments

Comments

@gherkins
Copy link

gherkins commented Apr 9, 2024

When using lite-rpc to optimize some rather rarely occurring swap transactions,
would there a possibility to tone down the block polling interval in between transactions?

Or would that undermine the whole optimization strategy?
So in other words does lite-rpc have to continually poll the current slot and block that fast?

Asking mainly because, when using in conjunction with paid RPC services,
the getSlot & getBlock methods calls amount for a really large amount of credits...🤔

@jordanamr
Copy link

Stop using Helius then. It's garbage anyway.

@gherkins
Copy link
Author

Cheers, thanks for the suggestion!
What setup would you suggest - you'd still need some RPC service, right?

Sorry, if I got this backwards, but lite-rpc acts as a kind of optimization "proxy" between a full RPC service and the client, doesn't it?
So you'd need to have some kind of (full) RPC service?
Do you have a setup suggestion?

@godmodegalactus
Copy link
Collaborator

o in other words does lite-rpc have to continually poll the current slot and block that f

Do you have way to get geyser subscriptions , if you do not want to poll blocks ??
May some developement can be done to get singature status for transactions sent by lite-rpc instead of polling blocks.

@gherkins
Copy link
Author

so the polling is mainly done as a confirmation strategy?
If so, would making that feature optional be a possibility?

So that you could use lite-rpc to send transaction, but just subscribe to the signature-status updates on the "original” rpc connection... 🤷‍♂️

@tymur999
Copy link

tymur999 commented Jun 4, 2024

Stop using Helius then. It's garbage anyway.

What is wrong with Helius? @jordanamr

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

No branches or pull requests

4 participants