mirror of
https://github.com/corda/corda.git
synced 2025-02-06 11:09:18 +00:00
Adds a constructor overload to the TransactionBuilder for Java use.
This commit is contained in:
parent
847a3c4494
commit
bfd02f5d78
@ -38,6 +38,7 @@ open class TransactionBuilder(
|
|||||||
protected val commands: MutableList<Command> = arrayListOf(),
|
protected val commands: MutableList<Command> = arrayListOf(),
|
||||||
protected val signers: MutableSet<PublicKey> = mutableSetOf(),
|
protected val signers: MutableSet<PublicKey> = mutableSetOf(),
|
||||||
protected var timeWindow: TimeWindow? = null) {
|
protected var timeWindow: TimeWindow? = null) {
|
||||||
|
constructor(type: TransactionType, notary: Party) : this(type, notary, (Strand.currentStrand() as? FlowStateMachine<*>)?.id?.uuid ?: UUID.randomUUID())
|
||||||
|
|
||||||
val time: TimeWindow? get() = timeWindow // TODO: rename using a more descriptive name (i.e. timeWindowGetter) or remove if unused.
|
val time: TimeWindow? get() = timeWindow // TODO: rename using a more descriptive name (i.e. timeWindowGetter) or remove if unused.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user