Skip to content

BDX: Add BlockCount field to BlockData #11292

Closed
@holbrookt

Description

Problem

TransferSession emits BlockData structs when it receives a Block message from a BDX exchange. This BlockData struct does not currently include the BlockCount field, since only Synchronous BDX is implemented right now, so Blocks will always come one at a time.

Once Asynchronous BDX is implemented, BlockData will need to also contain the BlockCount field, since it is not guaranteed that messages will come in order. The application will need to order them using BlockCount.

Proposed Solution

  • add BlockCount to BlockData struct
  • make sure BlockCount is filled in when Block messages are received, and also modify existing unit tests

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions