david liu <david-khala@...>
I have a same concern here, a proposed new feature to provide a more updated block height is expose a query service from orderer, instead of from peer.
For who is current leader peer, I gues it could be a new feature of service discovery service. But so far there is not.
+852 5982 3942
发件人: fabric@... <fabric@...> 代表 andychen.chen@... <andychen.chen@...>
发送时间: Wednesday, November 28, 2018 6:34:52 PM
主题: [Hyperledger Fabric] How to get the ledger height of channel in real time? #fabric-sdk-node
As we know, one channel can have multiple peers, and when we query ledger height , we need to specify one peer in the channel, but if this peer's ledger is not up to date(e.g. not a leader peer, network issue,sync delay），we will not get the latest ledger data.
Obviously, it's not good to do a circle check on all peers in channel to get the ledger data which has the biggest height.
Is there any other way to achieve this? e.g. can we know which peer is leader peer in a channel in fabric sdk? suppose leader peer should have the latest ledger data.