fixes handling wrong txs
This commit is contained in:
parent
f26f2d0453
commit
22ef1bb3f3
2 changed files with 6 additions and 3 deletions
|
|
@ -256,7 +256,7 @@ Insight.prototype.broadcast = function(rawtx, cb) {
|
|||
this.requestPost('/api/tx/send', {
|
||||
rawtx: rawtx
|
||||
}, function(err, res, body) {
|
||||
if (err || res.status != 200) cb(err || res);
|
||||
if (err || res.statusCode != 200) cb(err || body);
|
||||
cb(null, body ? body.txid : null);
|
||||
});
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue