input-output-hk / hermes

🏛️ Hermes is a high-availability blockchain voting database that acts as a distributed storage and event processor for voting events, proposals, and actions.

Home Page:https://input-output-hk.github.io/hermes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🛠️ [TASK] : Add method to get block data back from `MultiEraBlockData` in cardano-chain-follower

FelipeRosa opened this issue · comments

Summary

Add a way to get the block data bytes from the MultiEraBlockData wrapper type in cardano-chain-follower.

Description

Add a way to get the block data bytes from the MultiEraBlockData wrapper type in cardano-chain-follower.

  • Method for consuming a MultiEraBlockData and getting Vec<u8> (e.g. into_data or into_inner)
  • Implement AsRef<[u8]> for MultiEraBlockData so users can get a reference to the inner data and also are able to create Vec<u8> from it

Closed by #185