IntersectMBO / ouroboros-network

Specifications of network protocols and implementations of components running these protocols which support a family of Ouroboros Consesus protocols; the diffusion layer of the Cardano Node.
https://ouroboros-network.cardano.intersectmbo.org
Apache License 2.0
269 stars 86 forks source link

LocalStateQuery protocol: acquire state at implicit point #2573

Open coot opened 3 years ago

coot commented 3 years ago

It might be a good idea to acquire ledger state at an implicit Point (and report it back).

dcoutts commented 3 years ago

This would be an extra, alternative method of acquiring a state snapshot. We would also keep the ability to pick a specific point.

The use case for this method is when we do just want a recent tip, but the exact one does not matter. This is simpler since it avoids having to use the chain sync, and it avoids a race condition where the chain has moved on (e.g. switched fork) by the time we ask for a specific point.