Merge pull request #163 from cmgustavo/bug/01warning-when-bitcoind-not-running

fix warning when bitcoind is not running
This commit is contained in:
Mario Colque 2014-01-28 06:03:42 -08:00
commit 21903ea15a
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
};
}