8000 GitHub - bviswana101/fetch-block: Fetch block from EventHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

bviswana101/fetch-block

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Clone the fetch-block repo to $ $GOPATH/src/github.com/hyperledger/fabric/ using git clone https://github.com/cendhu/fetch-block

To compile the fetch-block tool, run the following command

$ cd fabric/fetch-block

$ go build

If compilation fails, make sure that fabric/ is placed in $ $GOPATH/src/github.com/hyperledger/fabric

After successful compilation, we can run the tool using $ ./fetch-block

Default configurations are given in config.yaml. Update config file as per the need. Make sure that the peer and fetch-block use the same MSP configuration.

When we start executing transaction on blockchain, each block is stroed in a file (with name ChannelId_blk#.json) as JSON format. In order to collect read/write set for each transaction, please replace fabric/events/producer/eventhelper.go with fetch-block/events/producer/eventhelper.go and recompile peer.

Refer to https://blockchain-fabric.blogspot.in/ for understanding the block structure.

About

Fetch block from EventHub

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%
0