876 | @@ -875,8 +877,11 @@ class CWallet : public CCryptoKeyStore, public CValidationInterface
877 | /* Returns the wallets help message */
878 | static std::string GetWalletHelpString(bool showDebug);
879 |
880 | - /* initializes the wallet, returns a new CWallet instance or a null pointer in case of an error */
881 | - static CWallet* InitLoadWallet(bool fDisableWallet, const std::string& strWalletFile, std::string& warningString, std::string& errorString);
882 | + /* Initializes the wallet, returns a new CWallet instance or a null pointer in case of an error */
883 | + static bool InitLoadWallet();
Why static instead of calling it from the pwalletMain global (which could be moved to wallet)?
Or are we turning the global into a singleton?
Why static instead of calling it from the pwalletMain global (which could be moved to wallet)?
Or are we turning the global into a singleton?
Right. This is the direction where I'm heading to. But I work in very tiny steps (as you can see). For now it just moves "static code" to a static function in CWallet. Later it should be within the pwalletMain context.