Add method removeTxWithSpentInputs to wallet
This commit is contained in:
parent
a0c7d2cb66
commit
8b55f69d40
2 changed files with 43 additions and 0 deletions
|
|
@ -44,6 +44,13 @@ TxProposals.prototype.getNtxids = function() {
|
|||
return Object.keys(this.txps);
|
||||
};
|
||||
|
||||
TxProposals.prototype.deleteOne = function(ntxid) {
|
||||
var txp = this.txps[ntxid];
|
||||
if (!txp)
|
||||
throw new Error('Unknown TXP: ' + ntxid);
|
||||
delete this.txps[ntxid];
|
||||
};
|
||||
|
||||
TxProposals.prototype.deleteAll = function() {
|
||||
this.txps = {};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue