Does the block contain the generation time of the block? How do I get it if it contains? Where it is located?
Asked
Active
Viewed 337 times
1 Answers
3
Actually hyperledger Fabric don't have timestamp on Blocks
Below is a hyperledger Fabric Blockstructure.
There is a Issue to add that in future FAB-15584

Rodolfo Leal
- 527
- 5
- 15
-
But when I read the official fabric document, it said that the metadata part contains the block write time.https://i.stack.imgur.com/u964J.png – xupter Dec 06 '19 at 02:00
-
There isn't a block time, I inspected at a Block and the latest code version, the only timestamp is the channel header generated by the client to prevent replay attacks. This information is wrong, I will open a issue for that. There is a issue to add timestamp at block header in future, https://jira.hyperledger.org/browse/FAB-15584 – Rodolfo Leal Dec 07 '19 at 15:32
-
A colegue did a fix in docs there is the PR https://github.com/hyperledger/fabric/pull/378/files – Rodolfo Leal Dec 07 '19 at 15:42
-
Thank you very much for your help and hope to add block generation time in the next version. Thank you! – xupter Dec 09 '19 at 01:31