Skip to content

Commit

Permalink
[FAB-9545] Align discover proto fields to standards
Browse files Browse the repository at this point in the history
This change set aligns protobuf fields of the discovery to standards of
having field names with underscores instead of camel cases.

Change-Id: Ic698d7cff74fe5926847bed7732b367c6caf995b
Signed-off-by: yacovm <yacovm@il.ibm.com>
  • Loading branch information
yacovm committed Apr 17, 2018
1 parent 66394e3 commit 4834540
Show file tree
Hide file tree
Showing 2 changed files with 86 additions and 85 deletions.
159 changes: 80 additions & 79 deletions protos/discovery/protocol.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions protos/discovery/protocol.proto
Original file line number Diff line number Diff line change
Expand Up @@ -71,19 +71,19 @@ message Query {
// The client has to query a peer it trusts as it doesn't have means to self-verify
// the authenticity of the returned result.
// The result is returned in the form of ConfigResult.
ConfigQuery configQuery = 2;
ConfigQuery config_query = 2;

// PeerMembershipQuery queries for peers in a channel context,
// and returns PeerMembershipResult
PeerMembershipQuery peerQuery = 3;
PeerMembershipQuery peer_query = 3;

// ChaincodeQuery queries for chaincodes by their name and version.
// An empty version means any version can by returned.
ChaincodeQuery ccQuery = 4;
ChaincodeQuery cc_query = 4;

// LocalPeerQuery queries for peers in a non channel context,
// and returns PeerMembershipResult
LocalPeerQuery localPeers = 5;
LocalPeerQuery local_peers = 5;
}
}

Expand All @@ -98,11 +98,11 @@ message QueryResult {

// ConfigResult contains the configuration of the channel,
// such as FabricMSPConfig and orderer endpoints
ConfigResult configResult = 2;
ConfigResult config_result = 2;

// ChaincodeQueryResult contains information about chaincodes,
// and their corresponding endorsers
ChaincodeQueryResult ccQueryRes = 3;
ChaincodeQueryResult cc_query_res = 3;

// PeerMembershipResult contains information about peers,
// such as their identity, endpoints, and channel related state.
Expand Down

0 comments on commit 4834540

Please sign in to comment.