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.

Home Page:https://ouroboros-network.cardano.intersectmbo.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add "query failure" transition to Local state query mini protocol

michele-nuzzi opened this issue · comments

As mentioned in this issue there is currently no way for a client performing a query on a node to know if something went wrong with the query.

This implies that a client that waits for a result of a failing query will block forever, without a way to know that indeed something went wrong.

A solution for this is just to add a transition in the local state query state machine from the "Querying" state to the "Acquired" state that notifies the client of the query failure (with possibly some error code)