fix all tests

This commit is contained in:
Manuel Araoz 2014-12-19 18:53:21 -03:00
parent 6c518f1f45
commit fb57a60666
2 changed files with 3 additions and 3 deletions

View File

@ -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();

View File

@ -251,7 +251,7 @@ describe('Interpreter', function() {
testAllFixtures(script_invalid, false);
});
describe.only('bitcoind transaction evaluation fixtures', function() {
describe('bitcoind transaction evaluation fixtures', function() {
var test_txs = function(set, expected) {
var c = 0;
set.forEach(function(vector) {