Added utility function for TransactionDatabase reset.
This commit is contained in:
parent
27ceffaee3
commit
9fee035c58
1 changed files with 6 additions and 0 deletions
|
@ -54,3 +54,9 @@ TransactionDatabase.prototype.loadTransactions = function (txs) {
|
|||
TransactionDatabase.prototype.getTransactions = function () {
|
||||
return this.txs;
|
||||
};
|
||||
|
||||
TransactionDatabase.prototype.clear = function () {
|
||||
this.txs = [];
|
||||
this.txIndex = {};
|
||||
$(this).trigger('update');
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue