-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DA5-22: Distribution and validation of draft transactions #1413
Changes from 4 commits
f588698
c83abe5
48b7ea9
388a095
dcc8d5b
9979c6d
01aba59
81a9cf0
f62f7da
6b6cf85
d8f568a
b35ceb9
a991108
18b4c65
d806b51
4683589
9159999
0477bfe
63d1ce1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -283,6 +283,32 @@ UtxoSignedTransaction receiveTransaction( | |
@NotNull FlowSession session | ||
); | ||
|
||
/** | ||
* Sends the wire transaction to counterparty sessions. | ||
julia-filipczak marked this conversation as resolved.
Show resolved
Hide resolved
|
||
* | ||
* @param sessions The counterparties who receive the transaction. | ||
* @param signedTransaction The {@link UtxoSignedTransaction} to send. | ||
julia-filipczak marked this conversation as resolved.
Show resolved
Hide resolved
julia-filipczak marked this conversation as resolved.
Show resolved
Hide resolved
|
||
* @throws CordaRuntimeException If transaction verification fails on the receiving sessions. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I do not think this applies to this case. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Isn't this referring to this part of the flow? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes. That propagates back the exceptions to the receiver side. |
||
*/ | ||
@Suspendable | ||
void sendAsLedgerTransaction( | ||
@NotNull UtxoSignedTransaction signedTransaction, | ||
@NotNull List<FlowSession> sessions | ||
); | ||
|
||
/** | ||
* Receives a verified transaction from the counterparty session and persists it to the vault. | ||
julia-filipczak marked this conversation as resolved.
Show resolved
Hide resolved
|
||
* | ||
* @param session The counterparty to receive a transaction from. | ||
* @return the {@link UtxoLedgerTransaction} received from counterparty. | ||
* @throws CordaRuntimeException If the transaction received fails verification. | ||
julia-filipczak marked this conversation as resolved.
Show resolved
Hide resolved
|
||
*/ | ||
@NotNull | ||
@Suspendable | ||
UtxoLedgerTransaction receiveLedgerTransaction( | ||
@NotNull FlowSession session | ||
); | ||
|
||
/** | ||
* Creates a query object for a vault named query with the given name. This query can be executed later by calling | ||
* {@link PagedQuery#execute()}. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You'll need to rebase and bump the version number.
The suffix will need to be removed as well before merging.