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

Last account update for current slot. #322

Open
SerK0 opened this issue Apr 14, 2024 · 5 comments
Open

Last account update for current slot. #322

SerK0 opened this issue Apr 14, 2024 · 5 comments

Comments

@SerK0
Copy link

SerK0 commented Apr 14, 2024

Sometime there are several updates for account in a slot.
Would be great to have flag/notification about ending of slot updates for account.
Is there a way to get this data from streamer?

For example:

  1. slot = 1, account = x, write_version=1, date, is_last_update=False
  2. slot = 1, account = x, write_version=8, date, is_last_update=False
  3. slot = 1, account = x, write_version=14, date, is_last_update=True
@linuskendall
Copy link
Contributor

linuskendall commented Apr 14, 2024 via email

@SerK0
Copy link
Author

SerK0 commented Apr 14, 2024

Yes, bigger write version, fresher update.
But question a little bit different, how to understand that this one update is the last one and I should not wait for another one?

@fanatid
Copy link
Collaborator

fanatid commented Apr 14, 2024

geyser interface does not provide such information
you can assume that stream is finished when block meta message is received

@SerK0
Copy link
Author

SerK0 commented Apr 15, 2024

I realized that block meta comes slowly, for example:

Timestamp - Slot number - Update order
1713183053.118703 - Slot: 260262935 - update 1
1713183053.1275694 - Slot: 260262935 - update 1
1713183053.3360858 - Slot: 260262935 - Blockmeta received

1713183056.801951 - Slot: 260262942 - update 1
1713183056.981968 - Slot: 260262942 - Blockmeta received

1713183078.8877778 - Slot: 260262991 - update 1
1713183079.219065 - Slot: 260262991 - Blockmeta received

Blockmeta comes like 100-300ms later after update. Is it possible to understand that streamer won't push messages more?
Maybe I can get some message queue to realize that there is no messages?

@fanatid
Copy link
Collaborator

fanatid commented Apr 15, 2024

Maybe I can get some message queue to realize that there is no messages?

no, you can't, check geyser interface, please.

you do not receive block meta with delay, you receive it when the bank is frozen, but account updates are received while the new bank is processed (this is the benefit of the geyser)

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

3 participants