diff options
author | Marcello Stanisci <stanisci.m@gmail.com> | 2017-12-15 12:16:13 +0100 |
---|---|---|
committer | Marcello Stanisci <stanisci.m@gmail.com> | 2017-12-15 12:16:13 +0100 |
commit | 5cfaebcd8da58f09f8d10279b359ba0953d64cb5 (patch) | |
tree | dccb3139becbc173b733ba3dbdf62e105eb6e952 | |
parent | 92f0066b99ab3152b65f0c1ee3dbc031c8ec4af5 (diff) | |
download | deployment-5cfaebcd8da58f09f8d10279b359ba0953d64cb5.tar.gz deployment-5cfaebcd8da58f09f8d10279b359ba0953d64cb5.tar.bz2 deployment-5cfaebcd8da58f09f8d10279b359ba0953d64cb5.zip |
topping the tip reserve via bank transaction
-rwxr-xr-x | bin/taler-deployment-top-reserve | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/bin/taler-deployment-top-reserve b/bin/taler-deployment-top-reserve index 41453ba..40617f3 100755 --- a/bin/taler-deployment-top-reserve +++ b/bin/taler-deployment-top-reserve @@ -8,18 +8,20 @@ fi # %N is current nanoseconds. UUID=$(date +"uuid-%N") -# Obtain reserve public key from file -RESERVE=$(gnunet-ecc -p $(taler-config -s PATHS -o TALER_DEPLOYMENT_SHARED -f)/merchant/default-tip.priv) +RESERVE=$(gnunet-ecc -p $( \ + printf "%s%s" \ + $(taler-config -s PATHS -o TALER_DEPLOYMENT_SHARED -f) \ + /merchant/default-tip.priv)) -# Tell the exchange about the 'incoming' wire transfer -# (TODO: shouldn't we rather tell the *bank* (bank/admin/add/incoming) -# to execute the wire transfer, and have the bank tell the exchange? -# This ought to cause the wire auditor to fail!) -taler-exchange-reservemod \ - --add="$TALER_CONFIG_CURRENCY:100.0" \ - --reserve=$RESERVE \ - --sender="{\"bank_uri\":\"https://bank.$TALER_ENV_NAME.taler.net/\",\"account_number\":7,\"type\":\"test\"}" \ - --transfer="{\"uuid\":\"$UUID\"}" +taler-bank-transfer \ + --amount "$TALER_CONFIG_CURRENCY:100.00" \ + --bank "https://bank.$TALER_ENV_NAME.taler.net/" \ + --credit 2 \ # Exchange + --debit 8 \ # Survey + --L "DEBUG" + --pass "x" + --subject $RESERVE + --user "Survey" if ! test 0 = $?; then echo Topping reserve failed! |