Tools, FAQ, Tutorials:
blockfile_000000 - Blockfiles of Blockchain
What is blockfile_000000 Blockfiles of Blockchain?
✍: FYIcenter.com
Blocks of a blockchain are stored in physical files. Since they are very static once created, there is no need to store them in database.
Hyperledger Fabric combines multiple blocks into a single blockfile, and stores it in the /var/hyperledger/production/ledgersData/chains/chains directory on the peer container.
Since each channel has its own block, blockfiles are stored in sub-directories, one per channel. You can view and download blockfiles as shown below.
$ docker exec peer0.org1.example.com ls -l /var/hyperledger/production/ledgersData/chains/chains/mychannel -rw-r----- 1 root root 31232 Apr 1 16:11 blockfile_000000 $ docker cp peer0.org1.example.com:\ /var/hyperledger/production/ledgersData/chains/chains/mychannel\ blockfile_000000 . $ more blockfile_000000 ... OrdererMSP-----BEGIN CERTIFICATE----- MIICDDCCAbOgAwIBAgIRAK30hdRcBxQJYNPqPkiFo3IwCgYIKoZIzj0EAwIwaTEL MAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNhbiBG ...
As you can see, the blockfile is also in binary format, you need a tool to parse it.
⇒ Setup Node.js for WYFA Tests
⇐ Read Block Data in Blockchain
2020-02-07, 1918🔥, 0💬
Popular Posts:
How To Avoid the Undefined Index Error in PHP? If you don't want your PHP page to give out errors as...
How to use the "rewrite-uri" Policy Statement for an Azure API service operation? The "rewrite-uri" ...
What Azure AD App Registration Manifest? Azure AD App Registration Manifest is JSON file that contai...
How to use the RSS Online Validator at w3.org? You can follow this tutorial to learn how to use the ...
How to use the Atom Online Validator at w3.org? w3.org feed validation service is provided at http:/...