feat(resend): Re-send process improvements
This commit is contained in:
parent
f7f98d986e
commit
9ea8af28f8
3 changed files with 79 additions and 65 deletions
|
|
@ -103,11 +103,14 @@ function verifyTx(req, res) {
|
|||
function send(req, res) {
|
||||
plugins.sendBitcoins(getFingerprint(req), req.body, function(err, status) {
|
||||
// TODO: use status.statusCode here after confirming machine compatibility
|
||||
res.json({
|
||||
var j = {
|
||||
errType: err && err.name,
|
||||
err: err && err.message,
|
||||
txHash: status && status.txHash
|
||||
});
|
||||
txHash: status && status.txHash,
|
||||
txId: status && status.txId
|
||||
};
|
||||
logger.debug('send: %j', j);
|
||||
res.json(j);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue