mirror of
https://github.com/corda/corda.git
synced 2025-01-17 10:20:02 +00:00
Minor: fix trader demo (names got out of sync)
This commit is contained in:
parent
1633ff1ef7
commit
6a0d7d4a0d
@ -83,7 +83,7 @@ class CommercialPaper : Contract {
|
|||||||
// Here, we match acceptable timestamp authorities by name. The list of acceptable TSAs (oracles) must be
|
// 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
|
// hard coded into the contract because otherwise we could fail to gain consensus, if nodes disagree about
|
||||||
// who or what is a trusted authority.
|
// 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) {
|
for (group in groups) {
|
||||||
when (command.value) {
|
when (command.value) {
|
||||||
|
@ -12,14 +12,14 @@ fi
|
|||||||
if [[ "$mode" == "buyer" ]]; then
|
if [[ "$mode" == "buyer" ]]; then
|
||||||
if [ ! -d buyer ]; then
|
if [ ! -d buyer ]; then
|
||||||
mkdir buyer
|
mkdir buyer
|
||||||
echo "myLegalName = Bank of Zurich" >buyer/config
|
echo "myLegalName = Bank A" >buyer/config
|
||||||
fi
|
fi
|
||||||
|
|
||||||
build/install/r3prototyping/bin/r3prototyping --dir=buyer --service-fake-trades --network-address=localhost
|
build/install/r3prototyping/bin/r3prototyping --dir=buyer --service-fake-trades --network-address=localhost
|
||||||
elif [[ "$mode" == "seller" ]]; then
|
elif [[ "$mode" == "seller" ]]; then
|
||||||
if [ ! -d seller ]; then
|
if [ ! -d seller ]; then
|
||||||
mkdir seller
|
mkdir seller
|
||||||
echo "myLegalName = Bank of London" >seller/config
|
echo "myLegalName = Bank B" >seller/config
|
||||||
fi
|
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
|
build/install/r3prototyping/bin/r3prototyping --dir=seller --fake-trade-with=localhost --network-address=localhost:31340 --timestamper-identity-file=buyer/identity-public --timestamper-address=localhost
|
||||||
|
Loading…
Reference in New Issue
Block a user