Added utility function for TransactionDatabase reset.
This commit is contained in:
parent
27ceffaee3
commit
9fee035c58
@ -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 New Issue
Block a user