← Watch feed
lmdb: correct environment error spelling
What changed, and why it matters
This commit fixes a typo in two user-facing error messages, changing 'LDMB' to 'LMDB'. It does not change any program logic, database handling, or security behavior.
Recommended action
No security action needed; this is a cosmetic spelling fix.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The patch is a string-only correction in exception messages within src/blockchain_utilities/blockchain_prune.cpp and src/wallet/ringdb.cpp. No functional code, API, or control flow is modified.
Changed components
src/blockchain_utilities/blockchain_prune.cppsrc/wallet/ringdb.cppInspect captured patch +2 / −2
diff --git a/src/blockchain_utilities/blockchain_prune.cpp b/src/blockchain_utilities/blockchain_prune.cpp
index f6ddbf9..abe64a6 100644
--- a/src/blockchain_utilities/blockchain_prune.cpp
+++ b/src/blockchain_utilities/blockchain_prune.cpp
@@ -78,7 +78,7 @@ static void open(MDB_env *&env, const boost::filesystem::path &path, uint64_t db
flags |= MDB_RDONLY;
dbr = mdb_env_create(&env);
- if (dbr) throw std::runtime_error("Failed to create LDMB environment: " + std::string(mdb_strerror(dbr)));
+ if (dbr) throw std::runtime_error("Failed to create LMDB environment: " + std::string(mdb_strerror(dbr)));
dbr = mdb_env_set_maxdbs(env, 32);
if (dbr) throw std::runtime_error("Failed to set max env dbs: " + std::string(mdb_strerror(dbr)));
dbr = mdb_env_open(env, path.string().c_str(), flags, 0664);
diff --git a/src/wallet/ringdb.cpp b/src/wallet/ringdb.cpp
index b468245..08c6530 100644
--- a/src/wallet/ringdb.cpp
+++ b/src/wallet/ringdb.cpp
@@ -207,7 +207,7 @@ ringdb::ringdb(std::string filename, const std::string &genesis):
tools::create_directories_if_necessary(filename);
dbr = mdb_env_create(&env);
- THROW_WALLET_EXCEPTION_IF(dbr, tools::error::wallet_internal_error, "Failed to create LDMB environment: " + std::string(mdb_strerror(dbr)));
+ THROW_WALLET_EXCEPTION_IF(dbr, tools::error::wallet_internal_error, "Failed to create LMDB environment: " + std::string(mdb_strerror(dbr)));
dbr = mdb_env_set_maxdbs(env, 2);
THROW_WALLET_EXCEPTION_IF(dbr, tools::error::wallet_internal_error, "Failed to set max env dbs: " + std::string(mdb_strerror(dbr)));
const std::string actual_filename = get_rings_filename(filename);
Risk score
Our methodology →Why this scored 15/100
Human-validated context
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
No validated notes yet.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.