Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement functionality in GrpcBlockItemWriter for acting on PublishStreamResponseCodes (from BN) #16158

Open
Tracked by #15428
derektriley opened this issue Oct 24, 2024 · 0 comments

Comments

@derektriley
Copy link
Contributor

derektriley commented Oct 24, 2024

The Block Node may publish responses to the CN PublishStreamRequest and the response contains a number of status codes that the consensus node will need to react to. See https://github.com/hashgraph/hedera-protobufs/blob/main/block/block_service.proto#L352

This issue is to add logic to the GrpcBlockItemWriter for processing PublishStreamResponseCodes (BN -> CN). This may involve closing the stream, interacting with BlockStreamManager to obtain cached blocks to be sent again after re-establishing a new stream with a Block Node.

  • STREAM_ITEMS_UNKNOWN
  • STREAM_ITEMS_SUCCESS
  • STREAM_ITEMS_TIMEOUT
    -- Source MUST start a new stream before the failed block.
  • STREAM_ITEMS_OUT_OF_ORDER
    -- Source MUST start a new stream before the failed block.
  • STREAM_ITEMS_BAD_STATE_PROOF
    -- Source MUST start a new stream before the failed block.
  • STREAM_ITEMS_BEHIND
    -- Source may retry by sending blocks immediately following the block_number or end the stream and try again later.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant