#3522- IdentitySyncFlow.Send primary constructor requires a ProgressTracker (#3554)

* Adding default tracker for primary constructor.

* Adding default tracker for primary constructor.

* Removing tracker from constructor.

* Adding default tracker for primary constructor.

* Removing tracker from constructor.
This commit is contained in:
Keerthi Nelaturu 2018-07-10 14:02:35 -04:00 committed by Joel Dudley
parent da32a7e56f
commit 17b800ea15

View File

@ -20,10 +20,10 @@ object IdentitySyncFlow {
* recipient, enabling them to verify that identity.
*/
// TODO: Can this be triggered automatically from [SendTransactionFlow]?
class Send(val otherSideSessions: Set<FlowSession>,
class Send @JvmOverloads constructor(val otherSideSessions: Set<FlowSession>,
val tx: WireTransaction,
override val progressTracker: ProgressTracker) : FlowLogic<Unit>() {
constructor(otherSide: FlowSession, tx: WireTransaction) : this(setOf(otherSide), tx, tracker())
override val progressTracker: ProgressTracker = tracker()) : FlowLogic<Unit>() {
constructor(otherSide: FlowSession, tx: WireTransaction) : this(setOf(otherSide), tx)
companion object {
object SYNCING_IDENTITIES : ProgressTracker.Step("Syncing identities")