diff --git a/src/supernode/WalletPayObject.cpp b/src/supernode/WalletPayObject.cpp index acc84dac9..ef970772a 100644 --- a/src/supernode/WalletPayObject.cpp +++ b/src/supernode/WalletPayObject.cpp @@ -190,6 +190,7 @@ bool supernode::WalletPayObject::PutTXToPool() { } m_TransactionPoolID = ptx->txid()[0]; + m_Owner->storeWalletState(m_wallet.get()); return true; } diff --git a/src/supernode/baseclientproxy.cpp b/src/supernode/baseclientproxy.cpp index aed71f29b..fec9b6d5f 100644 --- a/src/supernode/baseclientproxy.cpp +++ b/src/supernode/baseclientproxy.cpp @@ -61,7 +61,7 @@ bool supernode::BaseClientProxy::GetWalletBalance(const supernode::rpc_command:: wal->refresh(); out.Balance = wal->balance(); out.UnlockedBalance = wal->unlocked_balance(); - storeWalletState(std::move(wal)); + storeWalletState(wal.get()); } catch (const std::exception& e) { @@ -203,7 +203,7 @@ std::unique_ptr supernode::BaseClientProxy::initWallet(const return wal; } -void supernode::BaseClientProxy::storeWalletState(std::unique_ptr wallet) +void supernode::BaseClientProxy::storeWalletState(tools::GraftWallet *wallet) { if (wallet) { diff --git a/src/supernode/baseclientproxy.h b/src/supernode/baseclientproxy.h index a2dcb1acb..a9035dc9d 100644 --- a/src/supernode/baseclientproxy.h +++ b/src/supernode/baseclientproxy.h @@ -39,7 +39,7 @@ class BaseClientProxy : public BaseRTAProcessor BaseClientProxy(); std::unique_ptr initWallet(const std::string &account, const std::string &password) const; - void storeWalletState(std::unique_ptr wallet); + void storeWalletState(tools::GraftWallet *wallet); static std::string base64_decode(const std::string &encoded_data); static std::string base64_encode(const std::string &data);