Question on Hyperledger fabric


David Enyeart
 

The blockfiles are in a binary format, you won’t be able to open them in an editor.

Each blockfile stores the content of N blocks, up until it becomes 64MB in size, at which point the next blockfile will get created to store subsequent blocks.

 

From: fabric@... <fabric@...> on behalf of Utsa Roy <utsaroy4@...>
Date: Friday, November 18, 2022 at 12:11 PM
To: fabric@... <fabric@...>
Subject: [EXTERNAL] [Hyperledger Fabric] Question on Hyperledger fabric

Dear Sir/Madam, I am a research scholar at the Indian Institute of Engineering Science and Technology, Shibpur. In my research work, I am using hyperledger fabric, and I have read that the hyperledger fabric stores the database under /var/hyperledger/. . . . . 

ZjQcmQRYFpfptBannerStart

This Message Is From an Untrusted Sender

You have not previously corresponded with this sender.

ZjQcmQRYFpfptBannerEnd

Dear Sir/Madam,

I am a research scholar at the Indian Institute of Engineering Science and Technology, Shibpur. In my research work, I am using hyperledger fabric, and I have read that the hyperledger fabric stores the database under /var/hyperledger/..... . However, I found that the directory only contains one file named "blockfile000000". So My questions are -
1) Does that file contain the data for every block?
2) That file won't open in any editor, so how can I read it?
3) If editing that file is not possible, is there any way we can separate a part of the ledger?

 

Thanks and regards.

 

 

Utsa Roy

Research Scholar

Department of computer science and technology

Indian Institute of Engineering Science and Technology, Shibpur (IIESTS)

Howrah 711103, WB, India


Utsa Roy <utsaroy4@...>
 

Dear Sir/Madam,
I am a research scholar at the Indian Institute of Engineering Science and Technology, Shibpur. In my research work, I am using hyperledger fabric, and I have read that the hyperledger fabric stores the database under /var/hyperledger/..... . However, I found that the directory only contains one file named "blockfile000000". So My questions are -
1) Does that file contain the data for every block?
2) That file won't open in any editor, so how can I read it?
3) If editing that file is not possible, is there any way we can separate a part of the ledger?

Thanks and regards.


Utsa Roy
Research Scholar
Department of computer science and technology
Indian Institute of Engineering Science and Technology, Shibpur (IIESTS)
Howrah 711103, WB, India