diff options
| author | Ross Nicoll <[email protected]> | 2021-06-09 08:38:00 +0100 |
|---|---|---|
| committer | Ross Nicoll <[email protected]> | 2021-06-09 08:38:00 +0100 |
| commit | 803923ca58c67ad9cd2335ee501d27c21ec71f66 (patch) | |
| tree | a1ecaafa48c1b5395c118835ad80d01bdda1eda6 /src/interfaces | |
| parent | Directly include NodeContext instead of defining it (diff) | |
| download | discoin-803923ca58c67ad9cd2335ee501d27c21ec71f66.tar.xz discoin-803923ca58c67ad9cd2335ee501d27c21ec71f66.zip | |
Remove separate node and wallet contexts
Diffstat (limited to 'src/interfaces')
| -rw-r--r-- | src/interfaces/wallet.cpp | 4 | ||||
| -rw-r--r-- | src/interfaces/wallet.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/interfaces/wallet.cpp b/src/interfaces/wallet.cpp index 599b265ba..4124bc786 100644 --- a/src/interfaces/wallet.cpp +++ b/src/interfaces/wallet.cpp @@ -568,9 +568,9 @@ public: std::unique_ptr<Wallet> MakeWallet(const std::shared_ptr<CWallet>& wallet) { return wallet ? MakeUnique<WalletImpl>(wallet) : nullptr; } -std::unique_ptr<WalletClient> MakeWalletClient(NodeContext& node, Chain& chain, ArgsManager& args) +std::unique_ptr<WalletClient> MakeWalletClient(NodeContext& node, ArgsManager& args) { - return MakeUnique<WalletClientImpl>(node, chain, args); + return MakeUnique<WalletClientImpl>(node, *node.chain, args); } } // namespace interfaces diff --git a/src/interfaces/wallet.h b/src/interfaces/wallet.h index be1a3572c..5f93b8264 100644 --- a/src/interfaces/wallet.h +++ b/src/interfaces/wallet.h @@ -411,7 +411,7 @@ std::unique_ptr<Wallet> MakeWallet(const std::shared_ptr<CWallet>& wallet); //! Return implementation of ChainClient interface for a wallet client. This //! function will be undefined in builds where ENABLE_WALLET is false. -std::unique_ptr<WalletClient> MakeWalletClient(NodeContext& node, Chain& chain, ArgsManager& args); +std::unique_ptr<WalletClient> MakeWalletClient(NodeContext& node, ArgsManager& args); } // namespace interfaces |