diff options
author | Russell Yanofsky <russ@yanofsky.org> | 2018-04-08 14:37:50 -0400 |
---|---|---|
committer | Russell Yanofsky <russ@yanofsky.org> | 2019-02-22 15:43:02 -0400 |
commit | 1106a6fde4bfde31a16de45e4cc84ed5da05c5a4 (patch) | |
tree | 7d8168d42ef198f19f5f200833d22c77a6b0c86d /src/interfaces/chain.h | |
parent | 318f41fb2cae0a46b4e4be49156562b8ed640f0c (diff) | |
download | bitcoin-1106a6fde4bfde31a16de45e4cc84ed5da05c5a4.tar.xz |
Remove use of uiInterface.LoadWallet in wallet code
This also changes the uiInterface.LoadWallet signal argument type from
shared_ptr<CWallet> to unique_ptr<interfaces::Wallet> because CWallet is an
internal wallet class that shouldn't be used in non-wallet code (and also can't
be passed across process boundaries).
This commit does not change behavior.
Diffstat (limited to 'src/interfaces/chain.h')
-rw-r--r-- | src/interfaces/chain.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/interfaces/chain.h b/src/interfaces/chain.h index be486bd4fc..116656fef4 100644 --- a/src/interfaces/chain.h +++ b/src/interfaces/chain.h @@ -24,6 +24,8 @@ struct FeeCalculation; namespace interfaces { +class Wallet; + //! Interface for giving wallet processes access to blockchain state. class Chain { @@ -187,6 +189,9 @@ public: //! Send init error. virtual void initError(const std::string& message) = 0; + + //! Send wallet load notification to the GUI. + virtual void loadWallet(std::unique_ptr<Wallet> wallet) = 0; }; //! Interface to let node manage chain clients (wallets, or maybe tools for |