JSHint: remove defined but never used
This commit is contained in:
parent
e735a9182b
commit
f5005299d1
4 changed files with 9 additions and 11 deletions
|
@ -6,7 +6,6 @@ var assert = require('assert')
|
|||
var BigInteger = require('bigi')
|
||||
|
||||
// constants
|
||||
var TWO = BigInteger.valueOf(2)
|
||||
var THREE = BigInteger.valueOf(3)
|
||||
|
||||
function ECFieldElementFp(q,x) {
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
var ec = require('./ec')
|
||||
var Key = require('./eckey')
|
||||
var T = require('./transaction')
|
||||
|
||||
module.exports = {
|
||||
|
|
|
@ -1,16 +1,15 @@
|
|||
// FIXME: To all ye that enter here, be weary of Buffers, Arrays and Hex interchanging between the outpoints
|
||||
|
||||
var assert = require('assert')
|
||||
var Address = require('./address')
|
||||
var BigInteger = require('bigi')
|
||||
var bufferutils = require('./bufferutils')
|
||||
var Script = require('./script')
|
||||
var convert = require('./convert')
|
||||
var crypto = require('./crypto')
|
||||
var ECKey = require('./eckey')
|
||||
var ecdsa = require('./ecdsa')
|
||||
var opcodes = require('./opcodes')
|
||||
|
||||
var Address = require('./address')
|
||||
var Script = require('./script')
|
||||
var ECKey = require('./eckey')
|
||||
|
||||
var DEFAULT_SEQUENCE = 0xffffffff
|
||||
|
||||
function Transaction(doc) {
|
||||
|
@ -154,7 +153,7 @@ Transaction.prototype.toBuffer = function () {
|
|||
writeUInt32(this.version)
|
||||
writeVarInt(this.ins.length)
|
||||
|
||||
this.ins.forEach(function(txin, i) {
|
||||
this.ins.forEach(function(txin) {
|
||||
var hash = new Buffer(txin.outpoint.hash, 'hex') // FIXME: Performance: convert on tx.addInput instead
|
||||
|
||||
// TxHash hex is big-endian, we need little-endian
|
||||
|
|
|
@ -205,11 +205,12 @@ function Wallet(seed, network) {
|
|||
return tx
|
||||
}
|
||||
|
||||
function getCandidateOutputs(value){
|
||||
function getCandidateOutputs() {
|
||||
var unspent = []
|
||||
for (var key in me.outputs){
|
||||
|
||||
for (var key in me.outputs) {
|
||||
var output = me.outputs[key]
|
||||
if(!output.spend) unspent.push(output)
|
||||
if (!output.spend) unspent.push(output)
|
||||
}
|
||||
|
||||
var sortByValueDesc = unspent.sort(function(o1, o2){
|
||||
|
|
Loading…
Add table
Reference in a new issue