Merge pull request 'Store wallet immediately after sending tx' (#215) from tobtoht/feather:store_on_send into master

Reviewed-on: feather/feather#215
remotes/1691844314220217825/master
tobtoht 3 years ago
commit d3e55c4510

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