|
|
@ -73,7 +73,7 @@ var sighash = function sighash(transaction, sighashType, inputNumber, subscript) |
|
|
|
|
|
|
|
for (i = 0; i < inputNumber; i++) { |
|
|
|
txcopy.outputs[i] = new Output({ |
|
|
|
satoshis: BN().fromBuffer(new buffer.Buffer(BITS_64_ON, 'hex')), |
|
|
|
satoshis: BN.fromBuffer(new buffer.Buffer(BITS_64_ON, 'hex')), |
|
|
|
script: Script.empty() |
|
|
|
}); |
|
|
|
} |
|
|
@ -83,7 +83,7 @@ var sighash = function sighash(transaction, sighashType, inputNumber, subscript) |
|
|
|
txcopy.inputs = [txcopy.inputs[inputNumber]]; |
|
|
|
} |
|
|
|
|
|
|
|
var buf = BufferWriter() |
|
|
|
var buf = new BufferWriter() |
|
|
|
.write(txcopy.toBuffer()) |
|
|
|
.writeInt32LE(sighashType) |
|
|
|
.toBuffer(); |
|
|
|