transaction: update getTransaction arguments

This commit is contained in:
Braydon Fuller 2016-04-08 16:16:41 -04:00
parent 8102761b55
commit dbcb70f839
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ Transaction.prototype._populateInput = function(db, input, poolTransactions, cal
return callback(new Error('Input is expected to have prevTxId as a buffer'));
}
var txid = input.prevTxId.toString('hex');
db.getTransaction(txid, true, function(err, prevTx) {
db.getTransaction(txid, function(err, prevTx) {
if(!prevTx) {
// Check the pool for transaction
for(var i = 0; i < poolTransactions.length; i++) {

View File

@ -817,7 +817,7 @@ describe('Node Functionality', function() {
it('will not show confirmation count for orphaned transaction', function(done) {
// This test verifies that in the situation that the transaction is not in the mempool and
// is included in an orphaned block transaction index that the confirmation count will be unconfirmed.
node.getTransactionWithBlockInfo(orphanedTransaction, false, function(err, data) {
node.getTransactionWithBlockInfo(orphanedTransaction, function(err, data) {
if (err) {
return done(err);
}