From 8d68e9cb029d9268543bc195a2f7a29ebe46c0c5 Mon Sep 17 00:00:00 2001 From: Esteban Ordano Date: Fri, 9 Jan 2015 19:51:23 -0300 Subject: [PATCH] Use satoshisBN internally --- .jshintrc | 2 +- lib/transaction/transaction.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.jshintrc b/.jshintrc index 1d70b696f..40fd8c6f6 100644 --- a/.jshintrc +++ b/.jshintrc @@ -28,7 +28,7 @@ "maxcomplexity": 6, // Cyclomatic complexity (http://en.wikipedia.org/wiki/Cyclomatic_complexity) "maxdepth": 4, // Maximum depth of nested control structures "maxlen": 120, // Maximum number of cols in a line - "multistr": true // Allow use of multiline EOL escaping + "multistr": true, // Allow use of multiline EOL escaping "predef": [ // Extra globals. "after", diff --git a/lib/transaction/transaction.js b/lib/transaction/transaction.js index 38568fe01..c219a7c5e 100644 --- a/lib/transaction/transaction.js +++ b/lib/transaction/transaction.js @@ -666,7 +666,7 @@ Transaction.prototype.verify = function() { var valueoutbn = BN(0); for (var i = 0; i < this.outputs.length; i++) { var txout = this.outputs[i]; - var valuebn = txout._satoshis; + var valuebn = txout._satoshisBN; if (valuebn.lt(0)) { return 'transaction txout ' + i + ' negative'; }