-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CORE-16860 Add counterparty info request and response events (#1256)
Adds counterparty info request and response events, and removes unneeded flow events and states. The session changes introduced in 5.1 mean that it is possible to request counterparty information before the counterparty is aware the flow exists and has started its initiated flow. This change allows the act of requesting counterparty information to start the initiated flow if required. --------- Co-authored-by: James Higgs <[email protected]>
- Loading branch information
Showing
7 changed files
with
23 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 0 additions & 7 deletions
7
data/avro-schema/src/main/resources/avro/net/corda/data/flow/event/Wakeup.avsc
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
...avro-schema/src/main/resources/avro/net/corda/data/flow/event/session/SessionConfirm.avsc
This file was deleted.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
...main/resources/avro/net/corda/data/flow/event/session/SessionCounterpartyInfoRequest.avsc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"type": "record", | ||
"name": "SessionCounterpartyInfoRequest", | ||
"doc" : "Request counterparties flow session information. This includes the flow protocol version that they are running.", | ||
"namespace": "net.corda.data.flow.event.session", | ||
"fields": [ | ||
{ | ||
"name": "sessionInit", | ||
"type": "net.corda.data.flow.event.session.SessionInit", | ||
"doc": "Contains information that can be used to start an initiated flow. Will be null for messages sent to the initiator. Will be null when initiated party is confirmed to be present to ensure out of order messages that arrive first contain this info." | ||
} | ||
] | ||
} |
7 changes: 7 additions & 0 deletions
7
...ain/resources/avro/net/corda/data/flow/event/session/SessionCounterpartyInfoResponse.avsc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "record", | ||
"name": "SessionCounterpartyInfoResponse", | ||
"doc" : "Sent from initiated to initiating party to inform them which protocol version of the flow they are running.", | ||
"namespace": "net.corda.data.flow.event.session", | ||
"fields": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters