Skip to content

Commit

Permalink
Event protobuf definition changes for multichain
Browse files Browse the repository at this point in the history
Added chainID and signed event to event protobuf definitions.
ChainID addition addresses FAB-1966.

Change-Id: I920225aa8d59310363fcaa1c7b6e445d738eb305
Signed-off-by: Patrick Mullaney <pm.mullaney@gmail.com>
  • Loading branch information
pmullaney committed Feb 1, 2017
1 parent 3ee280e commit bc93489
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 37 deletions.
6 changes: 3 additions & 3 deletions orderer/sbft/simplebft/simplebft.pb.go

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

1 change: 1 addition & 0 deletions protos/peer/admin.pb.go

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

88 changes: 54 additions & 34 deletions protos/peer/events.pb.go

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

11 changes: 11 additions & 0 deletions protos/peer/events.proto
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ message Interest {
oneof RegInfo {
ChaincodeReg chaincodeRegInfo = 2;
}
string chainID = 3;
}

//---------- consumer events ---------
Expand All @@ -71,6 +72,14 @@ message Unregister {
repeated Interest events = 1;
}

// SignedEvent is used for any communication between consumer and producer
message SignedEvent {
// Signature over the event bytes
bytes signature = 1;
// Marshal of Event object
bytes eventBytes = 2;
}

//Event is used by
// - consumers (adapters) to send Register
// - producer to advertise supported types and events
Expand All @@ -89,6 +98,8 @@ message Event {
//Unregister consumer sent events
Unregister unregister = 5;
}
// Creator of the event, specified as a certificate chain
bytes creator = 6;
}

// Interface exported by the events server
Expand Down

0 comments on commit bc93489

Please sign in to comment.