diff options
author | Cory Fields <cory-nospam-@coryfields.com> | 2023-07-06 18:32:24 +0000 |
---|---|---|
committer | Cory Fields <cory-nospam-@coryfields.com> | 2023-07-07 14:14:20 +0000 |
commit | e5e5aa1da261633c8f73b97d5aefe5dc450a7db9 (patch) | |
tree | 443baee0a02dbd7625fa3153417f9e7e7b85800e | |
parent | 4216f69250937b1ca4650dc0c21678a8444c6650 (diff) | |
download | bitcoin-e5e5aa1da261633c8f73b97d5aefe5dc450a7db9.tar.xz |
wallet: bdb: move SpanFromDbt to below SafeDbt's implementation
No functional change, just simplifies the code move in the next commit.
-rw-r--r-- | src/wallet/bdb.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/wallet/bdb.cpp b/src/wallet/bdb.cpp index e08391547a..4d410fa39e 100644 --- a/src/wallet/bdb.cpp +++ b/src/wallet/bdb.cpp @@ -31,10 +31,6 @@ namespace wallet { namespace { -Span<const std::byte> SpanFromDbt(const SafeDbt& dbt) -{ - return {reinterpret_cast<const std::byte*>(dbt.get_data()), dbt.get_size()}; -} //! Make sure database has a unique fileid within the environment. If it //! doesn't, throw an error. BDB caches do not work properly when more than one @@ -275,6 +271,11 @@ SafeDbt::operator Dbt*() return &m_dbt; } +static Span<const std::byte> SpanFromDbt(const SafeDbt& dbt) +{ + return {reinterpret_cast<const std::byte*>(dbt.get_data()), dbt.get_size()}; +} + bool BerkeleyDatabase::Verify(bilingual_str& errorStr) { fs::path walletDir = env->Directory(); |