Skip to content

how retrieve network information #595

Discussion options

You must be logged in to vote

You have mixed two very different capabilities here. Your old version is accessing information obtained by the client SDK using the Fabric discovery service about the network topology. Your new version is using block eventing (incorrectly) to obtain committed block from the blockchain, which is useful for tasks like building an off-chain data store.

Legacy SDKs needed to use the discovery service in order to identify and then connect to network peers required for transaction endorsement. The Fabric Gateway client API does not deal with service discovery at the client. Instead, the work of identifying endorsing peer is handled by the gateway service in the peer, which already holds locally…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by douglasjava
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants