Replace timestamp with time-window (#3211)

This commit is contained in:
Konstantinos Chalkias
2018-05-24 16:06:33 +01:00
committed by GitHub
parent d1e147b1c1
commit 52eef5da5b
10 changed files with 18 additions and 18 deletions

View File

@ -56,7 +56,7 @@ public class CommercialPaper implements Contract {
});
} else if (cmd.getValue() instanceof Commands.Issue) {
State output = outputs.get(0);
if (timeWindow == null) throw new IllegalArgumentException("Issuances must be timestamped");
if (timeWindow == null) throw new IllegalArgumentException("Issuances must have a time-window");
Instant time = timeWindow.getUntilTime();
requireThat(require -> {
// Don't allow people to issue commercial paper under other entities identities.