Hyperledger peers neither mine the block nor share it among themselves.
Let me tell you how it works:
- A transaction is send to one trusted VP.
- The VP broadcasts the transaction to all other VPs.
- All VPs reach consensus (using PBFT algorithm) on the order to follow to execute the transactions.
- All VPs execute the transactions "on their own" following the total order and build a block (calculating hashes mainly) with the executed transactions.
Since the transaction execution is deterministic and the number of transactions in a block remains the same, all the blocks will be the same as well.