Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
234 changes: 92 additions & 142 deletions api/protocoordinatorservice/coordinator.pb.go

Large diffs are not rendered by default.

14 changes: 6 additions & 8 deletions api/protocoordinatorservice/coordinator.proto
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,16 @@ option go_package = "github.com/hyperledger/fabric-x-committer/api/protocoordina
package protocoordinatorservice;

import "api/protoblocktx/block_tx.proto";
import "google/protobuf/empty.proto";

service Coordinator {
rpc BlockProcessing(stream Batch) returns (stream protoblocktx.TransactionsStatus);
rpc SetLastCommittedBlockNumber (protoblocktx.BlockInfo) returns (Empty) {};
rpc GetLastCommittedBlockNumber (Empty) returns (protoblocktx.LastCommittedBlock) {};
rpc GetNextExpectedBlockNumber (Empty) returns (protoblocktx.BlockInfo) {};
rpc SetLastCommittedBlockNumber (protoblocktx.BlockInfo) returns (google.protobuf.Empty) {};
rpc GetLastCommittedBlockNumber (google.protobuf.Empty) returns (protoblocktx.LastCommittedBlock) {};
rpc GetNextExpectedBlockNumber (google.protobuf.Empty) returns (protoblocktx.BlockInfo) {};
rpc GetTransactionsStatus(protoblocktx.QueryStatus) returns (protoblocktx.TransactionsStatus);
rpc GetConfigTransaction(Empty) returns (protoblocktx.ConfigTransaction) {};
rpc NumberOfWaitingTransactionsForStatus(Empty) returns (WaitingTransactions);
rpc GetConfigTransaction(google.protobuf.Empty) returns (protoblocktx.ConfigTransaction) {};
rpc NumberOfWaitingTransactionsForStatus(google.protobuf.Empty) returns (WaitingTransactions);
}

// A committer's representation of a block in the blockchain.
Expand Down Expand Up @@ -49,6 +50,3 @@ message TxRef {
message WaitingTransactions {
int32 count = 1;
}

message Empty {
}
59 changes: 30 additions & 29 deletions api/protocoordinatorservice/coordinator_grpc.pb.go

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

Loading