Skip to content

Stateful communication protocol and initialization handshake #2112

@mversic

Description

@mversic

We use enum versioning for many of our data structures (e.g. VersionedTransaction or VersionedQueryRequest). This has to be true for structures which are going to become part of the blockchain (like VersionedTransaction). However, for structures which are not going to become part of the blockchain (like VersionedQueryRequest) this is just an artifact of the communication protocol used. It should be possible to determine the version of the communication protocol used between client and server in the initialization handshake and store it for the duration of the session.

There are three major concerns:

  1. How long will the client session last
  2. How many of these structures are there that would make it worth it to make this kind of a change
  3. Are there other use cases for stateful communication

Could relate to #1788 or #2111

Metadata

Metadata

Assignees

No one assigned

    Labels

    iroha2-devThe re-implementation of a BFT hyperledger in RUSTquestionFurther information is requestedresearch

    Type

    No type

    Projects

    Status

    Roadmap

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions