aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/bdb.h
diff options
context:
space:
mode:
authorRussell Yanofsky <russ@yanofsky.org>2020-08-04 20:45:28 -0400
committerRussell Yanofsky <russ@yanofsky.org>2020-09-03 12:24:32 -0400
commit8b5e7297c02f3100a9cb27bfe206e3fc617ec173 (patch)
treed77b54fad59498c100511fe1565d9b06c55fe444 /src/wallet/bdb.h
parent3c815cfe54087fd139169161d2fd175e99840e6a (diff)
downloadbitcoin-8b5e7297c02f3100a9cb27bfe206e3fc617ec173.tar.xz
refactor: Pass wallet database into CWallet::Create
No changes in behavior
Diffstat (limited to 'src/wallet/bdb.h')
-rw-r--r--src/wallet/bdb.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wallet/bdb.h b/src/wallet/bdb.h
index 9f24a2f10b..fd5a49acc3 100644
--- a/src/wallet/bdb.h
+++ b/src/wallet/bdb.h
@@ -144,6 +144,9 @@ public:
/** Verifies the environment and database file */
bool Verify(bilingual_str& error);
+ /** Return path to main database filename */
+ std::string Filename() override { return (env->Directory() / strFile).string(); }
+
/**
* Pointer to shared database environment.
*