fix warning when bitcoind is not running
This commit is contained in:
parent
3f7c9a56e7
commit
531360e39f
|
@ -40,14 +40,13 @@ var getTransaction = function(txid, cb) {
|
|||
Transaction.fromIdWithInfo(txid, function(err, tx) {
|
||||
if (err) {
|
||||
console.log(err);
|
||||
return cb(err);
|
||||
}
|
||||
|
||||
if (!tx || !tx.info) {
|
||||
console.log('[transactions.js.48]:: TXid %s not found in RPC. CHECK THIS.', tx.txid); //TODO
|
||||
// not check this. no
|
||||
tx.info = {
|
||||
txid: tx.txid,
|
||||
txid: tx.txid
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue