Allow deleting local sent Tx history

This commit is contained in:
Aditya Kulkarni
2018-10-23 16:04:46 -07:00
parent 28296ec583
commit 9694ab7439
5 changed files with 28 additions and 0 deletions

View File

@@ -16,6 +16,12 @@ QString SentTxStore::writeableFile() {
}
}
// delete the sent history.
void SentTxStore::deleteHistory() {
QFile data(writeableFile());
data.remove();
}
QList<TransactionItem> SentTxStore::readSentTxFile() {
QFile data(writeableFile());
if (!data.exists()) {