-
Notifications
You must be signed in to change notification settings - Fork 25
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
pool updates: new column indicating the type of an update #242
Comments
Just a note around While I see the advantage of coming up with such an isolation, a natural consequence of adding this will then also need handling edge cases - for which the assumed logic of Splitting this will also potentially start giving birth to artificially created information on Koios that might be inconsistent from other chain indexers. (PS: There is an isolated Do you think this would work fine? |
Thank you for the elaborate response. You're much deeper in the guts of the data structures than I am, so I'll just trust you on the edge case issue :) In my naive thinking I was assuming checking the certificates would make it easy to determine the type and since every update is a snapshot of the current state it wouldn't make a difference if there is one or many updates of any type per epoch. I think I am closing this for now. Maybe something to bring up again at a later point. Thank you! |
Is your feature request related to a problem? Please describe.
Currently its not very simple to understand what type of pool update I am looking at.
Describe the solution you'd like
It'd be very helpful to be crystal clear about what type of update I am currently dealing with. This could be done by introducing a new enum column with values like
registration
,update
,deregistration
.Describe alternatives you've considered
Right now I can assume the types (except for deregistrations, see #240 / #241)
retiring_epoch
(yet to see)Another alternative is to follow the transactions referenced in the update items and look for certificates. If there is a registration cert I know its a registration, if there is a deregistration cert I know its a dereg, if none of them is found I know it's a param/relay update. This is cumbersome as it means n+1 requests and requires a bunch of code.
The text was updated successfully, but these errors were encountered: