Skip to content

Commit 2382b98

Browse files
committed
Update some mistakes in doc.
Update doc in the protos pkg, to match with the latest code. Change-Id: Ic0aeabd07b5cad38fe897ff8f70687863c7471a7 Signed-off-by: Baohua Yang <[email protected]>
1 parent 69345fa commit 2382b98

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

protos/chaincodeevent.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ limitations under the License.
1616
syntax = "proto3";
1717
package protos;
1818

19-
//Chaincode is used for events and registrations that are specific to chaincode
19+
//ChaincodeEvent is used for events and registrations that are specific to chaincode
2020
//string type - "chaincode"
2121
message ChaincodeEvent {
2222
string chaincodeID = 1;

protos/devops.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ service Devops {
3636
// Invoke chaincode.
3737
rpc Invoke(ChaincodeInvocationSpec) returns (Response) {}
3838

39-
// Invoke chaincode.
39+
// Query chaincode.
4040
rpc Query(ChaincodeInvocationSpec) returns (Response) {}
4141

4242
// Retrieve a TCert.

protos/fabric.proto

+2-2
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ message SyncStateSnapshotRequest {
232232
uint64 correlationId = 1;
233233
}
234234

235-
// SyncState is the payload of Message.SYNC_SNAPSHOT, which is a response
235+
// SyncStateSnapshot is the payload of Message.SYNC_SNAPSHOT, which is a response
236236
// to penchainMessage.SYNC_GET_SNAPSHOT. It contains the snapshot or a chunk of the
237237
// snapshot on stream, and in which case, the sequence indicate the order
238238
// starting at 0. The terminating message will have len(delta) == 0.
@@ -243,7 +243,7 @@ message SyncStateSnapshot {
243243
SyncStateSnapshotRequest request = 4;
244244
}
245245

246-
// SyncStateRequest is the payload of Message.SYNC_GET_STATE.
246+
// SyncStateDeltasRequest is the payload of Message.SYNC_GET_STATE.
247247
// blockNumber indicates the block number for the delta which is being
248248
// requested. If no payload is included with SYNC_GET_STATE, it represents
249249
// a request for a snapshot of the current state.

protos/transaction.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ func NewChaincodeDeployTransaction(chaincodeDeploymentSpec *ChaincodeDeploymentS
9090
return transaction, nil
9191
}
9292

93-
// NewChaincodeExecute is used to deploy chaincode.
93+
// NewChaincodeExecute is used to invoke chaincode.
9494
func NewChaincodeExecute(chaincodeInvocationSpec *ChaincodeInvocationSpec, uuid string, typ Transaction_Type) (*Transaction, error) {
9595
transaction := new(Transaction)
9696
transaction.Type = typ

0 commit comments

Comments
 (0)