Browse Source

fix all tests

patch-2
Manuel Araoz 10 years ago
parent
commit
fb57a60666
  1. 4
      lib/transaction/sighash.js
  2. 2
      test/script/interpreter.js

4
lib/transaction/sighash.js

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

2
test/script/interpreter.js

@ -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) {

Loading…
Cancel
Save