Skip to content

Commit 5c40082

Browse files
committed
Adding anchor peers to the configuration.proto
This commits adds anchor peer definition to be used in configuration block additionally adds new configuration item which will include this information. Change-Id: I6dee7004616cc3e5e615ce6d8b11dcfb70629bf0 Signed-off-by: Artem Barger <[email protected]>
1 parent b3c0fba commit 5c40082

12 files changed

+136
-92
lines changed

protos/common/configuration.pb.go

+41-41
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

protos/common/configuration.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ message ConfigurationItem {
5858
Policy = 0; // Implies that the Value is a marshaled Policy message, and may be referred to by Key as a ModificationPolicy
5959
Chain = 1; // Marshaled format for this type is yet to be determined
6060
Orderer = 2; // Marshaled format for this type is yet to be determined
61-
Fabric = 3; // Marshaled format for this type is yet to be determined
61+
Peer = 3; // Marshaled format for this type is yet to be determined
6262
}
6363
ChainHeader Header = 1; // The header which ties this configuration to a particular chain
6464
ConfigurationType Type = 2; // The type of configuration this is.

protos/peer/chaincode.pb.go

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

protos/peer/configuration.proto

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/*
2+
Copyright IBM Corp. 2017 All Rights Reserved.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
17+
syntax = "proto3";
18+
19+
option go_package = "github.com/hyperledger/fabric/protos/peer";
20+
21+
package protos;
22+
23+
// AnchorPeers simply represents list of anchor peers which is used in ConfigurationItem
24+
message AnchorPeers {
25+
repeated AnchorPeer anchorPees = 1;
26+
}
27+
28+
// AnchorPeer message structure which provides information about anchor peer, it includes host name,
29+
// port number and peer certificate.
30+
message AnchorPeer {
31+
32+
// DNS host name of the anchor peer
33+
string Host = 1;
34+
35+
// The port number
36+
int32 Port = 2;
37+
38+
// SSL certificate to be used to maintain mutual TLS
39+
// connection with anchor peer
40+
bytes Cert = 3;
41+
}

protos/peer/events.pb.go

+10-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

protos/peer/fabric.pb.go

+9-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

protos/peer/fabric_message.pb.go

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)