load.h raw

   1  // Copyright (c) 2009-2010 Satoshi Nakamoto
   2  // Copyright (c) 2009-2021 The Limenka developers
   3  // Distributed under the MIT software license, see the accompanying
   4  // file COPYING or http://www.opensource.org/licenses/mit-license.php.
   5  
   6  #ifndef LIMENKA_WALLET_LOAD_H
   7  #define LIMENKA_WALLET_LOAD_H
   8  
   9  #include <string>
  10  #include <vector>
  11  
  12  class ArgsManager;
  13  class CScheduler;
  14  
  15  namespace interfaces {
  16  class Chain;
  17  } // namespace interfaces
  18  
  19  namespace wallet {
  20  struct WalletContext;
  21  
  22  //! Responsible for reading and validating the -wallet arguments and verifying the wallet database.
  23  bool VerifyWallets(WalletContext& context);
  24  
  25  //! Load wallet databases.
  26  bool LoadWallets(WalletContext& context);
  27  
  28  //! Complete startup of wallets.
  29  void StartWallets(WalletContext& context);
  30  
  31  //! Flush all wallets in preparation for shutdown.
  32  void FlushWallets(WalletContext& context);
  33  
  34  void UnloadWallets(WalletContext& context);
  35  } // namespace wallet
  36  
  37  #endif // LIMENKA_WALLET_LOAD_H
  38