Use satoshisBN internally

This commit is contained in:
Esteban Ordano 2015-01-09 19:51:23 -03:00
parent 3b4aaff44d
commit 8d68e9cb02
2 changed files with 2 additions and 2 deletions

View File

@ -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",

View File

@ -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';
}