fetch-block icon indicating copy to clipboard operation
fetch-block copied to clipboard

Request to update

Open Hienphamthe opened this issue 6 years ago • 7 comments

Hi cendhu, is this tool still compatible with current version of HLF (version 1.3)? The problem is I received this error while trying to start fetch_block: Starting Client error on Register send rpc error: code = Internal desc = transport is closing could not start chat rpc error: code = Internal desc = transport is closing Error starting EventClient Thank you.

Hienphamthe avatar Jan 25 '19 16:01 Hienphamthe

It is not compatible with v1.3. I will make it work with v1.4 (which should work for 1.2 and 1.3). Please give me a month time and I will push a patch.

cendhu avatar Jan 28 '19 07:01 cendhu

@cendhu Hi Senthil,

I am looking for a way to inspect HLF 1.2/1.4 blockchain. I am eager to help you and would like to allocate extra resources for porting this solution to new versions of HL. How can we get in touch and discuss possible cooperation? Probably you could steer me or share the vision on what has to be done, so I would not start from scratch?

aaxx avatar Feb 18 '19 12:02 aaxx

@aaxx Sorry for the delay in update. I will be busy till Feb end. In the first week of March, I will push updates. Can you please wait till that time?

cendhu avatar Feb 18 '19 13:02 cendhu

@cendhu Unfortunately not. Is there any way to take a look on current state of the update? I plan to complete that in a week. Would not like to do that from scratch

aaxx avatar Feb 18 '19 13:02 aaxx

We have added additional details in rwset for the private data. Now, each rwset would contain pubUpdates and hashedUpdates. PvtUpdates are not included in the block. According to this new block structure, we need to change the fetch-block implementation. Further, the event mechanism in v1.4 has changed. Hence, some additional work is needed with respect to initial connections. If there is any urgency required, there is another alternative. Using SDK, we can call QSCC chaincode for retrieving the block by number. I hope, SDK (at least node) provides API for decoding the block. I have worked only in the backend not in SDK (hence, not aware of it much).

cendhu avatar Feb 18 '19 17:02 cendhu

Request to update, thanks

ping40 avatar May 31 '19 10:05 ping40

I create a simple tool to show hyperledger ledger file in json format.

https://github.com/ping40/fabric_ledger_reader

ping40 avatar Jun 03 '19 11:06 ping40