Unverified Commit c136929d authored by kladko's avatar kladko

SKALE-3170-fixed-backup-key

parent 5c9fb4f8
...@@ -220,7 +220,7 @@ void enter_SEK() { ...@@ -220,7 +220,7 @@ void enter_SEK() {
shared_ptr <string> test_key_ptr = LevelDB::getLevelDb()->readString("TEST_KEY"); shared_ptr <string> test_key_ptr = LevelDB::getLevelDb()->readString("TEST_KEY");
if (test_key_ptr == nullptr) { if (test_key_ptr == nullptr) {
spdlog::error("empty db"); spdlog::error("Error: corrupt or empty LevelDB database");
exit(-1); exit(-1);
} }
...@@ -259,6 +259,7 @@ void enter_SEK() { ...@@ -259,6 +259,7 @@ void enter_SEK() {
LevelDB::getLevelDb()->writeDataUnique("SEK", hexEncrKey.data()); LevelDB::getLevelDb()->writeDataUnique("SEK", hexEncrKey.data());
spdlog::info("Stored storage encryption key in LevelDB."); spdlog::info("Stored storage encryption key in LevelDB.");
} }
void initSEK() { void initSEK() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment