Skip to content

Commit

Permalink
Minor: timestamping service is now named just "Timestamping Service" …
Browse files Browse the repository at this point in the history
…instead of "European Timestamping Service"
  • Loading branch information
mikehearn authored and Mike Hearn committed Apr 13, 2016
1 parent fc133de commit eb3632b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contracts/src/main/kotlin/contracts/CommercialPaper.kt
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class CommercialPaper : Contract {
// Here, we match acceptable timestamp authorities by name. The list of acceptable TSAs (oracles) must be
// hard coded into the contract because otherwise we could fail to gain consensus, if nodes disagree about
// who or what is a trusted authority.
val timestamp: TimestampCommand? = tx.commands.getTimestampByName("Mock Company 0", "Bank A")
val timestamp: TimestampCommand? = tx.commands.getTimestampByName("Mock Company 0", "Timestamping Service", "Bank A")

for (group in groups) {
when (command.value) {
Expand Down
2 changes: 1 addition & 1 deletion contracts/src/main/kotlin/contracts/IRS.kt
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ class InterestRateSwap() : Contract {
*/
override fun verify(tx: TransactionForVerification) {
val command = tx.commands.requireSingleCommand<InterestRateSwap.Commands>()
val time = tx.commands.getTimestampByName("Mock Company 0", "European Timestamping Service", "Bank A")?.midpoint
val time = tx.commands.getTimestampByName("Mock Company 0", "Timestamping Service", "Bank A")?.midpoint
if (time == null) throw IllegalArgumentException("must be timestamped")

val irs = tx.outStates.filterIsInstance<InterestRateSwap.State>().single()
Expand Down

0 comments on commit eb3632b

Please sign in to comment.