Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
- Preffered -> Preferred
  See. https://jira.hyperledger.org/browse/FAB-1813.
- consesus -> consensus

Change-Id: I2ae9547c132fc19bf080ec1950fd05281a7573c1
Signed-off-by: Nao Nishijima <[email protected]>
  • Loading branch information
Nao Nishijima authored and Nao Nishijima committed Jan 30, 2017
1 parent 341ad08 commit afc53d4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions fabric-client/lib/Chain.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ var Chain = class {
this.setInitialEpoch(0);
this.setInitialMaxMessageCount(10);
this.setInitialAbsoluteMaxBytes(10 * 1024 * 1024);
this.setInitialPrefferedMaxBytes(10 * 1024 * 1024);
this.setInitialPreferredMaxBytes(10 * 1024 * 1024);
this._consensus_type = 'solo';
// user must set this value before the initializeChain() method
// is called
Expand Down Expand Up @@ -362,7 +362,7 @@ var Chain = class {
* chain is created.
* @return {int} initial preferred maximum bytes
*/
getInitialPrefferedMaxBytes() {
getInitialPreferredMaxBytes() {
return this._initial_preferred_max_bytes;
}

Expand All @@ -373,7 +373,7 @@ var Chain = class {
*
* @param {int} initial preferred maximum bytes
*/
setInitialPrefferedMaxBytes(initial_preferred_max_bytes) {
setInitialPreferredMaxBytes(initial_preferred_max_bytes) {
if(!Number.isInteger(initial_preferred_max_bytes) || initial_preferred_max_bytes < 0) {
throw new Error('initial preferred maximum bytes must be a positive integer');
}
Expand Down Expand Up @@ -479,7 +479,7 @@ var Chain = class {
var batchSize = new _ordererConfigurationProto.BatchSize();
batchSize.setMaxMessageCount(self.getInitialMaxMessageCount());
batchSize.setAbsoluteMaxBytes(self.getInitialAbsoluteMaxBytes());
batchSize.setPreferredMaxBytes(self.getInitialPrefferedMaxBytes());
batchSize.setPreferredMaxBytes(self.getInitialPreferredMaxBytes());
var batchSizeItem = buildSignedConfigurationItem(
configItemChainHeader,
orderer_type,
Expand Down
2 changes: 1 addition & 1 deletion test/unit/headless-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ test('\n\n ** Chain - method tests **\n\n', function (t) {
t.equal(_chain.toString(), '{"name":"testChain","orderers":" Orderer : {url:grpc://somehost.com:1234}|"}', 'checking chain toString');

_chain.setConsensusType('SOMETYPE');
t.equal(_chain.getConsensusType(), 'SOMETYPE', 'Chain tests: checking set and get Consesus type');
t.equal(_chain.getConsensusType(), 'SOMETYPE', 'Chain tests: checking set and get Consensus type');
t.throws(
function () {
_chain.setInitialEpoch(-1);
Expand Down

0 comments on commit afc53d4

Please sign in to comment.