We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4216f69 commit e5e5aa1Copy full SHA for e5e5aa1
src/wallet/bdb.cpp
@@ -31,10 +31,6 @@
31
32
namespace wallet {
33
namespace {
34
-Span<const std::byte> SpanFromDbt(const SafeDbt& dbt)
35
-{
36
- return {reinterpret_cast<const std::byte*>(dbt.get_data()), dbt.get_size()};
37
-}
38
39
//! Make sure database has a unique fileid within the environment. If it
40
//! doesn't, throw an error. BDB caches do not work properly when more than one
@@ -275,6 +271,11 @@ SafeDbt::operator Dbt*()
275
271
return &m_dbt;
276
272
}
277
273
274
+static Span<const std::byte> SpanFromDbt(const SafeDbt& dbt)
+{
+ return {reinterpret_cast<const std::byte*>(dbt.get_data()), dbt.get_size()};
+}
278
+
279
bool BerkeleyDatabase::Verify(bilingual_str& errorStr)
280
{
281
fs::path walletDir = env->Directory();
0 commit comments