mirror of
https://github.com/corda/corda.git
synced 2024-12-21 05:53:23 +00:00
089ba2cb69
Fixup after rebase and fix issue with checking previous deployment of bridges Correct comments on ArtemisMessagingClient constructor Fixup rates fix demo Get rid of when statements Make NetworkMapCache send modify as well as add//remove events. Make inboxes for nodes persistent. Suppress warnings Fix message acknowledgement so that it actually consumes messages properly. Change queueName to SimpleString to stop lots of wasted conversions Get rid of spurious import Tidy up and add comments Update to include comments on PR Remove unnecessary import
24 lines
739 B
Bash
Executable File
24 lines
739 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# This needs the buyer node to be running first.
|
|
|
|
if [ ! -e ./gradlew ]; then
|
|
echo "Run from the root directory please"
|
|
exit 1
|
|
fi
|
|
|
|
bin="build/install/r3prototyping/bin/get-rate-fix"
|
|
|
|
if [ ! -e $bin ]; then
|
|
./gradlew installDist
|
|
fi
|
|
|
|
if [ ! -e build/trader-demo/buyer/identity-public ]; then
|
|
echo "You must run scripts/trade-demo.sh buyer before running this script (and keep it running)"
|
|
exit 1
|
|
fi
|
|
|
|
# Upload the rates to the buyer node
|
|
curl -F rates=@scripts/example.rates.txt http://localhost:31338/upload/interest-rates
|
|
|
|
$bin --network-address=localhost:31300 --directory=build/trader-demo/rates-fix --network-map=localhost:31337 --network-map-identity-file=build/trader-demo/buyer/identity-public |