src/wallet.js: remove console.log statements

This commit is contained in:
booo 2011-12-28 13:47:55 +01:00
parent 7675cf14e4
commit 57d26950b9

View file

@ -38,7 +38,6 @@ Bitcoin.Wallet = (function () {
if ("string" === typeof pubs) { if ("string" === typeof pubs) {
pubs = pubs.split(','); pubs = pubs.split(',');
} }
console.log(pubs);
if (Array.isArray(pubs) && keys.length == pubs.length) { if (Array.isArray(pubs) && keys.length == pubs.length) {
for (var i = 0; i < keys.length; i++) { for (var i = 0; i < keys.length; i++) {
this.addKey(keys[i], pubs[i]); this.addKey(keys[i], pubs[i]);
@ -118,7 +117,6 @@ Bitcoin.Wallet = (function () {
pubKeyHash = Crypto.util.bytesToBase64(pubKeyHash); pubKeyHash = Crypto.util.bytesToBase64(pubKeyHash);
for (var i = 0; i < this.addressHashes.length; i++) { for (var i = 0; i < this.addressHashes.length; i++) {
if (this.addressHashes[i] == pubKeyHash) { if (this.addressHashes[i] == pubKeyHash) {
console.log(Crypto.util.bytesToBase64(Bitcoin.Util.sha256ripe160(keys[i].getPub())), pubKeyHash);
return keys[i].getPub(); return keys[i].getPub();
} }
} }
@ -191,7 +189,6 @@ Bitcoin.Wallet = (function () {
throw new Error('Insufficient funds.'); throw new Error('Insufficient funds.');
} }
console.log(selectedOuts);
var changeValue = availableValue.subtract(txValue); var changeValue = availableValue.subtract(txValue);
@ -219,10 +216,6 @@ Bitcoin.Wallet = (function () {
sendTx.ins[i].script = Script.createInputScript(signature, this.getPubKeyFromHash(pubKeyHash)); sendTx.ins[i].script = Script.createInputScript(signature, this.getPubKeyFromHash(pubKeyHash));
} }
console.log(sendTx);
console.log("pubkey: "+Crypto.util.bytesToHex(this.getPubKeyFromHash(pubKeyHash)));
return sendTx; return sendTx;
}; };