From 6a0d7d4a0dce6af50bc499d93af7d4a2b274e4be Mon Sep 17 00:00:00 2001 From: Mike Hearn Date: Thu, 7 Apr 2016 19:36:15 +0200 Subject: [PATCH] Minor: fix trader demo (names got out of sync) --- contracts/src/main/kotlin/contracts/CommercialPaper.kt | 2 +- scripts/trader-demo.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/contracts/src/main/kotlin/contracts/CommercialPaper.kt b/contracts/src/main/kotlin/contracts/CommercialPaper.kt index 225fb197a5..bfc8e5abfe 100644 --- a/contracts/src/main/kotlin/contracts/CommercialPaper.kt +++ b/contracts/src/main/kotlin/contracts/CommercialPaper.kt @@ -83,7 +83,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 of Zurich") + val timestamp: TimestampCommand? = tx.commands.getTimestampByName("Mock Company 0", "Bank A") for (group in groups) { when (command.value) { diff --git a/scripts/trader-demo.sh b/scripts/trader-demo.sh index d674564ac7..d606c71547 100755 --- a/scripts/trader-demo.sh +++ b/scripts/trader-demo.sh @@ -12,14 +12,14 @@ fi if [[ "$mode" == "buyer" ]]; then if [ ! -d buyer ]; then mkdir buyer - echo "myLegalName = Bank of Zurich" >buyer/config + echo "myLegalName = Bank A" >buyer/config fi build/install/r3prototyping/bin/r3prototyping --dir=buyer --service-fake-trades --network-address=localhost elif [[ "$mode" == "seller" ]]; then if [ ! -d seller ]; then mkdir seller - echo "myLegalName = Bank of London" >seller/config + echo "myLegalName = Bank B" >seller/config fi build/install/r3prototyping/bin/r3prototyping --dir=seller --fake-trade-with=localhost --network-address=localhost:31340 --timestamper-identity-file=buyer/identity-public --timestamper-address=localhost