mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 18:53:23 -03:00
Remove WalletDatabase::Create, CreateMock, and CreateDummy
These are superseded by CreateWalletDatabase, CreateMockWalletDatabase, and CreateDummyWalletDatabase
This commit is contained in:
parent
d6045d0ac6
commit
da7a83c5ee
1 changed files with 0 additions and 19 deletions
|
@ -120,25 +120,6 @@ public:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Return object for accessing database at specified path. */
|
|
||||||
static std::unique_ptr<BerkeleyDatabase> Create(const fs::path& path)
|
|
||||||
{
|
|
||||||
std::string filename;
|
|
||||||
return MakeUnique<BerkeleyDatabase>(GetWalletEnv(path, filename), std::move(filename));
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Return object for accessing dummy database with no read/write capabilities. */
|
|
||||||
static std::unique_ptr<BerkeleyDatabase> CreateDummy()
|
|
||||||
{
|
|
||||||
return MakeUnique<BerkeleyDatabase>();
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Return object for accessing temporary in-memory database. */
|
|
||||||
static std::unique_ptr<BerkeleyDatabase> CreateMock()
|
|
||||||
{
|
|
||||||
return MakeUnique<BerkeleyDatabase>(std::make_shared<BerkeleyEnvironment>(), "");
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Rewrite the entire database on disk, with the exception of key pszSkip if non-zero
|
/** Rewrite the entire database on disk, with the exception of key pszSkip if non-zero
|
||||||
*/
|
*/
|
||||||
bool Rewrite(const char* pszSkip=nullptr);
|
bool Rewrite(const char* pszSkip=nullptr);
|
||||||
|
|
Loading…
Add table
Reference in a new issue