mirror of https://github.com/BTCPrivate/copay.git
optimize txp protocol
This commit is contained in:
parent
b7af51ceee
commit
e09d8e11d4
|
@ -125,11 +125,6 @@ Wallet.prototype._handleTxProposal = function(senderId, data) {
|
||||||
var mergeInfo = this.txProposals.merge(inTxp);
|
var mergeInfo = this.txProposals.merge(inTxp);
|
||||||
var added = this.addSeenToTxProposals();
|
var added = this.addSeenToTxProposals();
|
||||||
|
|
||||||
if (mergeInfo.hasChanged || added) {
|
|
||||||
this.log('### BROADCASTING txProposals. ');
|
|
||||||
this.sendTxProposal(inTxp.getID());
|
|
||||||
}
|
|
||||||
|
|
||||||
this.emit('txProposalsUpdated');
|
this.emit('txProposalsUpdated');
|
||||||
this.store();
|
this.store();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue