CardanoSolutions/kupo

Documentation on rollbacks.

Closed this issue · 4 comments

How does kupo handle rollbacks?

Out of my depth here.
I assume that there are cases where the data provider (node or ogmios?)
change their mind about whether some previously handed over set of blocks are actually on-chain.
I did a quick search for "roll" here and in the docs, but I can't extract an answer to
"What happens when ... "

Will entries appear in a matches response before a rollback, and then be removed from the kupo db on rollback, so no longer appear?

KtorZ commented

Good question, and I am tempted to not answer it right here but instead, write a bit of documentation about it and refer to it. Which I'll do.

In the meantime, a short answer is: Kupo handles rollback just fine and gives you mechanisms for working with them too (such as the X-Most-Recent-Checkpoint header). There's a bit of documentation on this topic in the description of the limit request parameter for putPattern.

I'll add a section in the user guide about this topic, and I'll appreciate your feedback on it.

Thanks!

(And also for the rollback_to option 🚀 **related to a previous thread)

c'est parfait. merci