diff --git a/lib/transactions.js b/lib/transactions.js index e348d25..c471986 100644 --- a/lib/transactions.js +++ b/lib/transactions.js @@ -6,6 +6,8 @@ var $ = bitcore.util.preconditions; var common = require('./common'); var async = require('async'); +var MAXINT = 0xffffffff; // Math.pow(2, 32) - 1; + function TxController(node) { this.node = node; } @@ -213,7 +215,7 @@ TxController.prototype.transformInvTransaction = function(transaction) { } var isRBF = _.any(_.pluck(transaction.inputs, 'sequenceNumber'), function(seq) { - return seq !== 0xffffffff; + return seq < MAXINT - 1; }); var transformed = {