Moves to builder syntax for TxBuilder. Adds attachments and time-windows to withItems.

This commit is contained in:
Joel Dudley
2017-07-06 14:23:43 +01:00
committed by GitHub
parent c6e165947b
commit 3063debd98
4 changed files with 44 additions and 40 deletions

View File

@ -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))
/**----------------------