fix result type

This commit is contained in:
Ivan Socolsky 2015-08-13 18:13:34 -03:00
parent dd778de475
commit c0f673f1ed
1 changed files with 2 additions and 2 deletions

View File

@ -290,9 +290,9 @@ ExpressApp.prototype.start = function(opts, cb) {
router.post('/v1/broadcast_raw/', function(req, res) {
getServerWithAuth(req, res, function(server) {
server.broadcastRawTx(req.body, function(err, txp) {
server.broadcastRawTx(req.body, function(err, txid) {
if (err) return returnError(err, res, req);
res.json(txp);
res.json(txid);
res.end();
});
});