rm networking on nonShared wallets
This commit is contained in:
parent
3310bb6677
commit
a7de2ababd
6 changed files with 179 additions and 153 deletions
|
|
@ -205,4 +205,22 @@ TxProposals.prototype.getUsedUnspent = function(maxRejectCount) {
|
|||
return ret;
|
||||
};
|
||||
|
||||
/**
|
||||
* purge
|
||||
*
|
||||
* @param deleteAll
|
||||
* @return {undefined}
|
||||
*/
|
||||
TxProposals.prototype.purge = function(deleteAll, maxRejectCount) {
|
||||
var m = _.size(this.txps);
|
||||
|
||||
if (deleteAll) {
|
||||
this.deleteAll();
|
||||
} else {
|
||||
this.deletePending(maxRejectCount);
|
||||
}
|
||||
var n = _.size(this.txps);
|
||||
return m - n;
|
||||
};
|
||||
|
||||
module.exports = TxProposals;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue