fix all tests
This commit is contained in:
parent
6c518f1f45
commit
fb57a60666
|
@ -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();
|
||||
|
|
|
@ -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…
Reference in New Issue