Skip to content

Commit

Permalink
FABJ-441 Proto updates
Browse files Browse the repository at this point in the history
Change-Id: Ia120efdb13918e0b620ab28af5bf9ba3780f95f8
Signed-off-by: rickr <[email protected]>
  • Loading branch information
cr22rc committed May 15, 2019
1 parent 433432f commit 0dd377e
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 105 deletions.
32 changes: 23 additions & 9 deletions src/main/proto/orderer/ab.proto
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ message BroadcastResponse {
string info = 2;
}

message SeekNewest { }
message SeekNewest {}

message SeekOldest { }
message SeekOldest {}

message SeekSpecified {
uint64 number = 1;
Expand All @@ -49,19 +49,33 @@ message SeekPosition {
// SeekInfo specifies the range of requested blocks to return
// If the start position is not found, an error is immediately returned
// Otherwise, blocks are returned until a missing block is encountered, then behavior is dictated
// by the SeekBehavior specified. If BLOCK_UNTIL_READY is specified, the reply will block until
// the requested blocks are available, if FAIL_IF_NOT_READY is specified, the reply will return an
// error indicating that the block is not found. To request that all blocks be returned indefinitely
// as they are created, behavior should be set to BLOCK_UNTIL_READY and the stop should be set to
// specified with a number of MAX_UINT64
// by the SeekBehavior specified.
message SeekInfo {
// If BLOCK_UNTIL_READY is specified, the reply will block until the requested blocks are available,
// if FAIL_IF_NOT_READY is specified, the reply will return an error indicating that the block is not
// found. To request that all blocks be returned indefinitely as they are created, behavior should be
// set to BLOCK_UNTIL_READY and the stop should be set to specified with a number of MAX_UINT64
enum SeekBehavior {
BLOCK_UNTIL_READY = 0;
FAIL_IF_NOT_READY = 1;
}
SeekPosition start = 1; // The position to start the deliver from
SeekPosition stop = 2; // The position to stop the deliver

// SeekErrorTolerance indicates to the server how block provider errors should be tolerated. By default,
// if the deliver service detects a problem in the underlying block source (typically, in the orderer,
// a consenter error), it will begin to reject deliver requests. This is to prevent a client from waiting
// for blocks from an orderer which is stuck in an errored state. This is almost always the desired behavior
// and clients should stick with the default STRICT checking behavior. However, in some scenarios, particularly
// when attempting to recover from a crash or other corruption, it's desirable to force an orderer to respond
// with blocks on a best effort basis, even if the backing consensus implementation is in an errored state.
// In this case, set the SeekErrorResponse to BEST_EFFORT to ignore the consenter errors.
enum SeekErrorResponse {
STRICT = 0;
BEST_EFFORT = 1;
}
SeekPosition start = 1; // The position to start the deliver from
SeekPosition stop = 2; // The position to stop the deliver
SeekBehavior behavior = 3; // The behavior when a missing block is encountered
SeekErrorResponse error_response = 4; // How to respond to errors reported to the deliver service
}

message DeliverResponse {
Expand Down
87 changes: 0 additions & 87 deletions src/main/proto/orderer/configuration.proto

This file was deleted.

9 changes: 0 additions & 9 deletions src/main/proto/peer/peer.proto
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,6 @@ package protos;
import "peer/proposal.proto";
import "peer/proposal_response.proto";

message PeerID {
string name = 1;
}

message PeerEndpoint {
PeerID id = 1;
string address = 2;
}

service Endorser {
rpc ProcessProposal(SignedProposal) returns (ProposalResponse) {}
}

0 comments on commit 0dd377e

Please sign in to comment.