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

feat(fabric-connector): add getChainInfo, improve getBlock output #3298

Commits on Jul 4, 2024

  1. feat(fabric-connector): add getChainInfo, improve getBlock output

    - Add new method `getChainInfo` for quering chain information from qscc.
    - Add `GetChainInfoEndpointV1` to allow calling `getChainInfo` remotely.
    - Refactor `getBlock` so it can return same custom block formats
      as `WatchBlocks`. Default remains the same (full decode block).
      BREAKING CHANGE: It accepts `type` instead of `skipDecode` flag.
    - Move common block formatting logic to `cacti-block-formatters.ts`.
    - Add tests for new features. Move test common to quering `qscc` to single file
      to increase CI speed.
    
    Signed-off-by: Michal Bajer <michal.bajer@fujitsu.com>
    outSH authored and petermetz committed Jul 4, 2024
    Configuration menu
    Copy the full SHA
    9b2d4a8 View commit details
    Browse the repository at this point in the history