summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/taler-deployment-top-reserve9
1 files changed, 8 insertions, 1 deletions
diff --git a/bin/taler-deployment-top-reserve b/bin/taler-deployment-top-reserve
index 0f28178..cfc0056 100755
--- a/bin/taler-deployment-top-reserve
+++ b/bin/taler-deployment-top-reserve
@@ -8,9 +8,16 @@ fi
# %N is current nanoseconds.
UUID=$(date +"uuid-%N")
+# Obtain reserve public key from file
+RESERVE=`gnunet-ecc -P ${TALER_DEPLOYMENT_SHARED}/merchant/default.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=S98FEXHW3VJ93EA73CRAQ5E8E4DJE96Z9JXYFHFD169FWS9NS8A0 \
+ --reserve=$RESERVE \
--sender='{"bank_uri":"https://bank.$TALER_ENV_NAME.taler.net/","account_number":7,"type":"test"}' \
--transfer="{\"uuid\":\"$UUID\"}"