fix warning when bitcoind is not running

This commit is contained in:
Gustavo Cortez 2014-01-28 11:04:54 -03:00
parent 3f7c9a56e7
commit 531360e39f
1 changed files with 1 additions and 2 deletions

View File

@ -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
};
}