mirror of
https://github.com/corda/corda.git
synced 2025-06-13 04:38:19 +00:00
Moves to builder syntax for TxBuilder. Adds attachments and time-windows to withItems.
This commit is contained in:
@ -289,7 +289,7 @@ object FlowCookbook {
|
||||
regTxBuilder.addAttachment(ourAttachment)
|
||||
|
||||
// We set the time-window within which the transaction must be notarised using either of:
|
||||
regTxBuilder.timeWindow = ourTimeWindow
|
||||
regTxBuilder.setTimeWindow(ourTimeWindow)
|
||||
regTxBuilder.setTimeWindow(serviceHub.clock.instant(), Duration.ofSeconds(30))
|
||||
|
||||
/**----------------------
|
||||
|
Reference in New Issue
Block a user