A way of intersecting via just slot, height, or block hash individually (or some combination of) #331
eddiemundo
started this conversation in
Ideas / Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What is your idea? Provide a use case.
If I know that there is a block in which a tx I'm interested occurs, and want to look at it, if I find intersect with that block point I still can't get that block because requestNext will RollForward with the block after it.
It would be nice to be able to provide a slot, height, or even block hash and intersect at a point closest to the slot/height, or at the latest block hash if somehow there are multiple blocks with the same hash.
Why is it a good idea?
More flexible.
What is the current alternative and why is it not good enough?
To intersect with a point before that block I need to know a point before the block which is technically possible by taking the prevHash of the block received, and then trying to find intersect with slots one-by-one going backwards with the same block hash but that seems error prone and inefficient.
Other alternatives are to use another service like blockfrost or the query the node db directly which is inconvenient and maybe adds another point of failure.
Although if there is some way I overlooked please tell me lol
Beta Was this translation helpful? Give feedback.
All reactions