aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet.h
diff options
context:
space:
mode:
authorfurszy <matiasfurszyfer@protonmail.com>2023-01-18 10:27:16 -0300
committerfurszy <matiasfurszyfer@protonmail.com>2023-02-15 15:49:45 -0300
commit6c9b342c306b9e17024762c4ba8f1c64e9810ee2 (patch)
tree3dc1ee399060d113f904e85332e5ecd4afcb3f45 /src/wallet/wallet.h
parentd8f5fc446216258a68e256076c889ec23471855f (diff)
refactor: wallet, remove global 'ArgsManager' access
we are not using it anymore
Diffstat (limited to 'src/wallet/wallet.h')
-rw-r--r--src/wallet/wallet.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h
index 073c4910ff..5ffac182a8 100644
--- a/src/wallet/wallet.h
+++ b/src/wallet/wallet.h
@@ -307,9 +307,6 @@ private:
//! Unset the blank wallet flag and saves it to disk
void UnsetBlankWalletFlag(WalletBatch& batch) override;
- /** Provider of aplication-wide arguments. */
- const ArgsManager& m_args;
-
/** Interface for accessing chain state. */
interfaces::Chain* m_chain;
@@ -373,9 +370,8 @@ public:
unsigned int nMasterKeyMaxID = 0;
/** Construct wallet with specified name and database implementation. */
- CWallet(interfaces::Chain* chain, const std::string& name, const ArgsManager& args, std::unique_ptr<WalletDatabase> database)
- : m_args(args),
- m_chain(chain),
+ CWallet(interfaces::Chain* chain, const std::string& name, std::unique_ptr<WalletDatabase> database)
+ : m_chain(chain),
m_name(name),
m_database(std::move(database))
{