aboutsummaryrefslogtreecommitdiffstats
path: root/app.coffee
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2013-02-27 20:29:22 -0800
committerAdam Soltys <[email protected]>2013-02-27 20:29:27 -0800
commit64c806e2197cd912c4cdfab7ad623285f34ca360 (patch)
tree3aff2fdf7c92e4c8c7262e09414706d94e64f1f6 /app.coffee
parent99ae6573a4153ddb6858d3561cd9cf6a7ea5b2a3 (diff)
downloadcoinos-server-64c806e2197cd912c4cdfab7ad623285f34ca360.tar.gz
coinos-server-64c806e2197cd912c4cdfab7ad623285f34ca360.zip
Use writecheque command
Diffstat (limited to 'app.coffee')
-rw-r--r--app.coffee3
1 files changed, 1 insertions, 2 deletions
diff --git a/app.coffee b/app.coffee
index f0e501d9..8aac4705 100644
--- a/app.coffee
+++ b/app.coffee
@@ -63,8 +63,7 @@ app.get('/deposit', (req, res) ->
app.get('/issue/:amount', (req, res) ->
exec = require('child_process').exec
-
-# exec("opentxs sendcheque --myacct issuer --args \"memo \\\"here are your OT bitcoins.\\\" amount #{req.params.amount}\" --args \\\"validfor 2592001\\\"", (err, out, stderr) ->
+ exec("opentxs writecheque --myacct issuer --args \"memo \\\"Here's some OT-Bitcoins.\\\" amount #{req.params.amount} validfor 2592000\"", (err, out, stderr) ->
exec("opentxs stat", (err, out, stderr) ->
res.write(out)
res.end()