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)