[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-deployment] branch master updated: topping the tip r
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-deployment] branch master updated: topping the tip reserve via bank transaction |
Date: |
Fri, 15 Dec 2017 12:18:19 +0100 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository deployment.
The following commit(s) were added to refs/heads/master by this push:
new 5cfaebc topping the tip reserve via bank transaction
5cfaebc is described below
commit 5cfaebcd8da58f09f8d10279b359ba0953d64cb5
Author: Marcello Stanisci <address@hidden>
AuthorDate: Fri Dec 15 12:16:13 2017 +0100
topping the tip reserve via bank transaction
---
bin/taler-deployment-top-reserve | 24 +++++++++++++-----------
1 file 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!
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [taler-deployment] branch master updated: topping the tip reserve via bank transaction,
gnunet <=