Search code examples
sizehyperledger-fabrichyperledgerhyperledger-explorer

How to check fabric block size (in bytes)


I used Hyperledger Explorer, but i haven't any information of block size. I need to understand how many transactions saturate 1GB.

Thanks.


Solution

  • If you are using the docker files provided by Hyperledger, a mounted directory called prod is created when you run the network. This directory contains a directory for each peer. Inside a given peers directory there is chains/chains/<nameOfChannel>- in there are the block files. You can use traditional linux methods to get size of those files.