Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Orderer have Block(Ledger) data?

I built hyperledger fabric network using Kafka-based Ordering Service.

I thought that Orderer doesn't have Block data.
But, when I checked /var/hyperledger/production/orderer/chains/mychannel in Orderer server, I found blockfile_000000 file.
I checked this file using "less" command.
Then, I found key-value data which I registered by invoking chaincode.

What is this file?
This means that Orderer also maintain Block data(i.e. Ledger)?

like image 920
dr_devbc Avatar asked Oct 28 '25 11:10

dr_devbc


1 Answers

The orderer has the blockchain of all channels it is part of.

However, it doesn't have the world state and it doesn't inspect the content of the transactions.

It just writes the blocks into the disk, to serve peers that pull the blocks from it.

like image 115
yacovm Avatar answered Oct 31 '25 13:10

yacovm



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!