Skip to content

Commit

Permalink
using .some instead of .any and .map instead of .pluck
Browse files Browse the repository at this point in the history
  • Loading branch information
osagga committed Jun 21, 2018
1 parent dbfafe8 commit 916fa80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/transactions.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ TxController.prototype.transformInvTransaction = function(transaction) {
}
}

var isRBF = _.any(_.pluck(transaction.inputs, 'sequence'), function(seq) {
var isRBF = _.some(_.map(transaction.inputs, 'sequence'), function(seq) {
return seq < MAXINT - 1;
});

Expand Down

0 comments on commit 916fa80

Please sign in to comment.