mirror of
https://github.com/corda/corda.git
synced 2024-12-24 07:06:44 +00:00
Updates for finalizing transactions with one participant
This commit is contained in:
parent
221576d94a
commit
304b809d6b
@ -611,9 +611,17 @@ flow to receive the transaction:
|
|||||||
:dedent: 12
|
:dedent: 12
|
||||||
|
|
||||||
``idOfTxWeSigned`` is an optional parameter used to confirm that we got the right transaction. It comes from using ``SignTransactionFlow``
|
``idOfTxWeSigned`` is an optional parameter used to confirm that we got the right transaction. It comes from using ``SignTransactionFlow``
|
||||||
which is described below.
|
which is described in the error handling behaviour section.
|
||||||
|
|
||||||
**Error handling behaviour**
|
Finalizing transactions with only one participant
|
||||||
|
.................................................
|
||||||
|
|
||||||
|
In some cases, transactions will only have one participant, the initiator. In these instances, there are no other
|
||||||
|
parties to send the transactions to during ``FinalityFlow``. In these cases the ``counterpartySession`` list must exist,
|
||||||
|
but be empty.
|
||||||
|
|
||||||
|
Error handling behaviour
|
||||||
|
........................
|
||||||
|
|
||||||
Once a transaction has been notarised and its input states consumed by the flow initiator (eg. sender), should the participant(s) receiving the
|
Once a transaction has been notarised and its input states consumed by the flow initiator (eg. sender), should the participant(s) receiving the
|
||||||
transaction fail to verify it, or the receiving flow (the finality handler) fails due to some other error, we then have a scenario where not
|
transaction fail to verify it, or the receiving flow (the finality handler) fails due to some other error, we then have a scenario where not
|
||||||
|
@ -337,6 +337,13 @@ transaction that uses them. This flow returns a list of ``LedgerTransaction`` ob
|
|||||||
we don't download a transaction from the peer, they know we must have already seen it before. Fixing this privacy
|
we don't download a transaction from the peer, they know we must have already seen it before. Fixing this privacy
|
||||||
leak will come later.
|
leak will come later.
|
||||||
|
|
||||||
|
Finalizing transactions with only one participant
|
||||||
|
.................................................
|
||||||
|
|
||||||
|
In some cases, transactions will only have one participant, the initiator. In these instances, there are no other
|
||||||
|
parties to send the transactions to during ``FinalityFlow``. In these cases the ``counterpartySession`` list must exist,
|
||||||
|
but be empty.
|
||||||
|
|
||||||
CollectSignaturesFlow/SignTransactionFlow
|
CollectSignaturesFlow/SignTransactionFlow
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
We also invoke two other subflows:
|
We also invoke two other subflows:
|
||||||
|
Loading…
Reference in New Issue
Block a user