remove console.logs and std::couts
This commit is contained in:
parent
406600720e
commit
0b2dae43c5
1355
ScriptInterpreter.js
1355
ScriptInterpreter.js
File diff suppressed because it is too large
Load Diff
|
@ -313,7 +313,6 @@ Key::SetPublic(Local<String> property, Local<Value> value, const AccessorInfo& i
|
||||||
|
|
||||||
if (!ret) {
|
if (!ret) {
|
||||||
// TODO: Error
|
// TODO: Error
|
||||||
std::cout << ret << "C++++++++++++++++++++++++++++++++++++++\n";
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -48,7 +48,7 @@ function parse_test_transaction(entry) {
|
||||||
}
|
}
|
||||||
|
|
||||||
describe('Transaction', function() {
|
describe('Transaction', function() {
|
||||||
it.skip('should initialze the main object', function() {
|
it('should initialze the main object', function() {
|
||||||
should.exist(Transaction);
|
should.exist(Transaction);
|
||||||
In = Transaction.In;
|
In = Transaction.In;
|
||||||
Out = Transaction.Out;
|
Out = Transaction.Out;
|
||||||
|
@ -57,7 +57,7 @@ describe('Transaction', function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
it.skip('should be able to create instance', function() {
|
it('should be able to create instance', function() {
|
||||||
var t = new Transaction();
|
var t = new Transaction();
|
||||||
should.exist(t);
|
should.exist(t);
|
||||||
});
|
});
|
||||||
|
@ -76,8 +76,8 @@ describe('Transaction', function() {
|
||||||
var tx = testTx.transaction;
|
var tx = testTx.transaction;
|
||||||
|
|
||||||
describe((valid ? '' : 'in') + 'valid tx=' + raw, function() {
|
describe((valid ? '' : 'in') + 'valid tx=' + raw, function() {
|
||||||
it.skip('should parse correctly', function() {
|
it('should parse correctly', function() {
|
||||||
buffertools.toHex(tx.serialize()).should.equal(raw);
|
buffertools.toHex(tx.serialize()).toLowerCase().should.equal(raw.toLowerCase());
|
||||||
});
|
});
|
||||||
|
|
||||||
var inputs = tx.inputs();
|
var inputs = tx.inputs();
|
||||||
|
@ -91,7 +91,6 @@ describe('Transaction', function() {
|
||||||
input[0].copy(outpointHash);
|
input[0].copy(outpointHash);
|
||||||
input[0] = buffertools.reverse(outpointHash);
|
input[0] = buffertools.reverse(outpointHash);
|
||||||
input[0] = buffertools.toHex(input[0]);
|
input[0] = buffertools.toHex(input[0]);
|
||||||
buffertools.toHex(tx.serialize()).toLowerCase().should.equal(raw.toLowerCase());
|
|
||||||
var mapKey = [input];
|
var mapKey = [input];
|
||||||
var scriptPubKey = testTx.inputs[mapKey];
|
var scriptPubKey = testTx.inputs[mapKey];
|
||||||
if (!scriptPubKey) throw new Error('Bad test: ' + datum);
|
if (!scriptPubKey) throw new Error('Bad test: ' + datum);
|
||||||
|
@ -102,9 +101,14 @@ describe('Transaction', function() {
|
||||||
dontVerifyStrictEnc: true
|
dontVerifyStrictEnc: true
|
||||||
},
|
},
|
||||||
function(err, results) {
|
function(err, results) {
|
||||||
should.not.exist(err);
|
if (valid) {
|
||||||
should.exist(results);
|
should.not.exist(err);
|
||||||
results.should.equal(valid);
|
should.exist(results);
|
||||||
|
results.should.equal(valid);
|
||||||
|
} else {
|
||||||
|
var invalid = (typeof err !== 'undefined') || results === false;
|
||||||
|
invalid.should.equal(true);
|
||||||
|
}
|
||||||
done();
|
done();
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue