refactor: move DuplicateMockDatabase to wallet/test/util.h

This commit is contained in:
furszy
2022-08-19 11:29:44 -03:00
parent ee7a984f85
commit 373c99633e
3 changed files with 29 additions and 24 deletions

View File

@@ -18,9 +18,14 @@ class Chain;
namespace wallet {
class CWallet;
struct DatabaseOptions;
class WalletDatabase;
std::unique_ptr<CWallet> CreateSyncedWallet(interfaces::Chain& chain, CChain& cchain, ArgsManager& args, const CKey& key);
// Creates a copy of the provided database
std::unique_ptr<WalletDatabase> DuplicateMockDatabase(WalletDatabase& database, DatabaseOptions& options);
/** Returns a new encoded destination from the wallet (hardcoded to BECH32) */
std::string getnewaddress(CWallet& w);
/** Returns a new destination, of an specific type, from the wallet */