-
Notifications
You must be signed in to change notification settings - Fork 515
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NodeSDK chain create submit to orderer FAB-1531
Updates to Chain to implement the first part of the chain create, submitting the configuration info to the orderer. Other changes are for proto changes in fabric. Change-Id: I6445a36685c1e8cc57183bb7cbe3fb8238a5a412 Signed-off-by: Bret Harrison <[email protected]>
- Loading branch information
Showing
11 changed files
with
828 additions
and
84 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
/* | ||
Copyright IBM Corp. 2016 All Rights Reserved. | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
|
||
syntax = "proto3"; | ||
|
||
import "../common/common.proto"; | ||
|
||
option go_package = "github.com/hyperledger/fabric/protos/orderer"; | ||
|
||
package orderer; | ||
|
||
|
||
// The orderer config is specified by the following convention: | ||
// For a configuration item with key "Key" | ||
// the encoded value is a a proto message of type "Key" | ||
// For example, for the configuration item of name "ConsensusType" | ||
// the encoded value is the proto message "ConsensusType" | ||
|
||
message ConsensusType { | ||
string type = 1; | ||
} | ||
|
||
message BatchSize { | ||
// Simply specified as number of messages for now, in the future | ||
// we may want to allow this to be specified by size in bytes | ||
uint32 maxMessageCount = 1; | ||
} | ||
|
||
message BatchTimeout { | ||
// Any duration string parseable by ParseDuration(): | ||
// https://golang.org/pkg/time/#ParseDuration | ||
string timeout = 1; | ||
} | ||
|
||
// When submitting a new chain configuration transaction to create a new chain, | ||
// the first configuration item must be of type Orderer with Key CreationPolicy | ||
// and contents of a Marshaled CreationPolicy. The policy should be set to the | ||
// policy which was supplied by the ordering service for the client's chain | ||
// creation. The digest should be the hash of the concatenation of the remaining | ||
// ConfigurationItem bytes. The signatures of the configuration item should | ||
// satisfy the policy for chain creation. | ||
message CreationPolicy { | ||
// The name of the policy which should be used to validate the creation of | ||
// this chain | ||
string policy = 1; | ||
|
||
// The hash of the concatenation of remaining configuration item bytes | ||
bytes digest = 2; | ||
} | ||
|
||
message ChainCreators { | ||
// A list of policies, any of which may be specified as the chain creation | ||
// policy in a chain creation request | ||
repeated string policies = 1; | ||
} | ||
|
||
// Carries a list of bootstrap brokers, i.e. this is not the exclusive set of | ||
// brokers an ordering service | ||
message KafkaBrokers { | ||
// Each broker here should be identified using the (IP|host):port notation, | ||
// e.g. 127.0.0.1:7050, or localhost:7050 are valid entries | ||
repeated string brokers = 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.