Browse Source

Added utility function for TransactionDatabase reset.

hk-custom-address
Stefan Thomas 14 years ago
parent
commit
9fee035c58
  1. 6
      src/txdb.js

6
src/txdb.js

@ -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…
Cancel
Save