fix txid response
This commit is contained in:
parent
a08ae8fcf3
commit
1c7c5b39ff
2 changed files with 3 additions and 3 deletions
|
|
@ -197,8 +197,8 @@ Insight.prototype.broadcast = function(rawtx, cb) {
|
|||
this.requestPost('/api/tx/send', {
|
||||
rawtx: rawtx
|
||||
}, function(err, res, body) {
|
||||
if (err || res.statusCode != 200) cb(err || res);
|
||||
cb(null, body.txid);
|
||||
if (err || res.status != 200) cb(err || res);
|
||||
cb(null, body ? body.txid: null);
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -341,7 +341,7 @@ Wallet.prototype._checkSentTx = function(ntxid, cb) {
|
|||
|
||||
this.blockchain.getTransaction(txid, function(err, tx) {
|
||||
if (err) return cb(false);
|
||||
cb(ret);
|
||||
return cb(ret);
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue