remove console.logs
This commit is contained in:
parent
dcd903904e
commit
85098bebbb
3 changed files with 3 additions and 11 deletions
|
|
@ -32,8 +32,6 @@ PrivateKey.fromObj = function(obj) {
|
||||||
};
|
};
|
||||||
|
|
||||||
PrivateKey.prototype.toObj = function() {
|
PrivateKey.prototype.toObj = function() {
|
||||||
|
|
||||||
console.log('[PrivateKey.js.35] TODO TODO: PRIV: ', this.getExtendedPrivateKeyString()); //TODO
|
|
||||||
return {
|
return {
|
||||||
extendedPrivateKeyString: this.getExtendedPrivateKeyString(),
|
extendedPrivateKeyString: this.getExtendedPrivateKeyString(),
|
||||||
networkName: this.network.name,
|
networkName: this.network.name,
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,6 @@ TxProposals.fromObj = function(o) {
|
||||||
o.txps.forEach(function(o2) {
|
o.txps.forEach(function(o2) {
|
||||||
var t = TxProposal.fromObj(o2);
|
var t = TxProposal.fromObj(o2);
|
||||||
var id = t.builder.build().getNormalizedHash().toString('hex');
|
var id = t.builder.build().getNormalizedHash().toString('hex');
|
||||||
console.log('[TxProposals.js.65:id:]',id, o2); //TODO
|
|
||||||
ret.txps[id] = t;
|
ret.txps[id] = t;
|
||||||
});
|
});
|
||||||
return ret;
|
return ret;
|
||||||
|
|
@ -129,7 +128,6 @@ TxProposals.prototype._mergeMetadata = function(myTxps, theirTxps, mergeInfo) {
|
||||||
Object.keys(toMerge).forEach(function(hash) {
|
Object.keys(toMerge).forEach(function(hash) {
|
||||||
var v0 = myTxps[hash];
|
var v0 = myTxps[hash];
|
||||||
var v1 = toMerge[hash];
|
var v1 = toMerge[hash];
|
||||||
console.log('[TxProposals.js.127:v0:]',v0, v1); //TODO
|
|
||||||
|
|
||||||
Object.keys(v1.seenBy).forEach(function(k) {
|
Object.keys(v1.seenBy).forEach(function(k) {
|
||||||
if (!v0.seenBy[k] || v0.seenBy[k] !== v1.seenBy[k]) {
|
if (!v0.seenBy[k] || v0.seenBy[k] !== v1.seenBy[k]) {
|
||||||
|
|
@ -152,7 +150,6 @@ console.log('[TxProposals.js.127:v0:]',v0, v1); //TODO
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
console.log('[TxProposals.js.131:hasChanged:]',hasChanged); //TODO
|
|
||||||
return hasChanged;
|
return hasChanged;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -171,20 +168,17 @@ TxProposals.prototype._mergeBuilder = function(myTxps, theirTxps, mergeInfo) {
|
||||||
var after = JSON.stringify(v0.toObj());
|
var after = JSON.stringify(v0.toObj());
|
||||||
if (after !== before) hasChanged ++;
|
if (after !== before) hasChanged ++;
|
||||||
}
|
}
|
||||||
console.log('[TxProposals.js.149:hasChanged:]',hasChanged); //TODO
|
|
||||||
};
|
};
|
||||||
|
|
||||||
TxProposals.prototype.add = function(data) {
|
TxProposals.prototype.add = function(data) {
|
||||||
var id = data.builder.build().getNormalizedHash().toString('hex');
|
var id = data.builder.build().getNormalizedHash().toString('hex');
|
||||||
console.log('[TxProposals.js.175:data: ADD]',data); //TODO
|
|
||||||
this.txps[id] = new TxProposal(data);
|
this.txps[id] = new TxProposal(data);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
TxProposals.prototype.setSent = function(ntxid) {
|
TxProposals.prototype.setSent = function(ntxid,txid) {
|
||||||
//sent TxProposals are local an not broadcasted.
|
//sent TxProposals are local an not broadcasted.
|
||||||
console.log('[TxProposals.js.147] SET SENT:', ntxid); //TODO
|
this.txps[ntxid].setSent(txid);
|
||||||
this.txps[ntxid].setSent();
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -357,7 +357,7 @@ Wallet.prototype.sendTx = function(ntxid, cb) {
|
||||||
this.blockchain.sendRawTransaction(txHex, function(txid) {
|
this.blockchain.sendRawTransaction(txHex, function(txid) {
|
||||||
self.log('BITCOND txid:',txid); //TODO
|
self.log('BITCOND txid:',txid); //TODO
|
||||||
if (txid) {
|
if (txid) {
|
||||||
self.txProposals.setSent(ntxid);
|
self.txProposals.setSent(ntxid, txid);
|
||||||
}
|
}
|
||||||
self.sendTxProposals();
|
self.sendTxProposals();
|
||||||
self.store();
|
self.store();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue