The extracted block.hash in Hyperledger is not the correct value. blockevent.hashCode() is an inherited function from Java Object, not provided by the Hyperledger fabric sdk. As a result, the block.hash that is logged to the output file is always different and does not represent the hash of the actual block.
The correct way to access a block hash is blockevent.getDataHash() and convert the byte array into a hex string.
Also, in Hyperledger, transactions do not seem to have their own hash.
The extracted block.hash in Hyperledger is not the correct value. blockevent.hashCode() is an inherited function from Java Object, not provided by the Hyperledger fabric sdk. As a result, the block.hash that is logged to the output file is always different and does not represent the hash of the actual block.
The correct way to access a block hash is blockevent.getDataHash() and convert the byte array into a hex string.
Also, in Hyperledger, transactions do not seem to have their own hash.