transaction: update getTransaction arguments
This commit is contained in:
parent
8102761b55
commit
dbcb70f839
|
@ -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++) {
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue