mirror of
https://git.wownero.com/wowlet/wowlet.git
synced 2024-08-15 01:03:14 +00:00
Store wallet immediately after sending tx
This commit is contained in:
parent
d1b4db2be4
commit
147ee8ef8b
1 changed files with 4 additions and 1 deletions
|
@ -764,7 +764,10 @@ void AppContext::onTransactionCreated(PendingTransaction *tx, const QString &add
|
|||
void AppContext::onTransactionCommitted(bool status, PendingTransaction *tx, const QStringList& txid){
|
||||
this->currentWallet->history()->refresh(this->currentWallet->currentSubaddressAccount());
|
||||
this->currentWallet->coins()->refresh(this->currentWallet->currentSubaddressAccount());
|
||||
this->storeWallet();
|
||||
|
||||
// Store wallet immediately so we don't risk losing tx key if wallet crashes
|
||||
this->currentWallet->store();
|
||||
|
||||
emit transactionCommitted(status, tx, txid);
|
||||
|
||||
// this tx was a donation to Feather, stop our nagging
|
||||
|
|
Loading…
Reference in a new issue