mirror of
https://github.com/feather-wallet/feather.git
synced 2024-11-18 10:11:02 +00:00
Merge pull request 'Store wallet immediately after sending tx' (#215) from tobtoht/feather:store_on_send into master
Reviewed-on: https://git.wownero.com/feather/feather/pulls/215
This commit is contained in:
commit
d3e55c4510
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){
|
void AppContext::onTransactionCommitted(bool status, PendingTransaction *tx, const QStringList& txid){
|
||||||
this->currentWallet->history()->refresh(this->currentWallet->currentSubaddressAccount());
|
this->currentWallet->history()->refresh(this->currentWallet->currentSubaddressAccount());
|
||||||
this->currentWallet->coins()->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);
|
emit transactionCommitted(status, tx, txid);
|
||||||
|
|
||||||
// this tx was a donation to Feather, stop our nagging
|
// this tx was a donation to Feather, stop our nagging
|
||||||
|
|
Loading…
Reference in a new issue