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

tick value in entity response does not always match the siblings data #76

Open
Qsilver97 opened this issue Mar 18, 2024 · 1 comment
Open

Comments

@Qsilver97
Copy link
Contributor

some interesting stats about tick alignment in entity info:

  1. prevSpectrumDigest as voted in tick N put into slot N
  2. whenever entity data comes in, compare against a range of 1), N-1, N, N+1, N+2
  3. based on assumption we would expect the match to be with slot N+1 as 1) is the prevSpectrumDigest
  4. results:
    N-1 175
    N 5644
    N+1 21481
    N+2 52

So indeed N+1 wins but a surprising number matches N due to off by one reporting of entity data

Not sure the reason, but it seems that the tick number in the entity response it not obtained in the same context as the sibling merkle calculations.

@Qsilver97
Copy link
Contributor Author

It seems this jitter is unavoidable, if so a good workaround is for the spectrum digest matched up to the tick and use the tick that matches the spectrum hash. this is what I do client side but maybe it should be done in the node itself so the wrong tick is not returned?

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

1 participant