diff --git a/src/db/storage.cpp b/src/db/storage.cpp index b05bade..8b2cdf1 100644 --- a/src/db/storage.cpp +++ b/src/db/storage.cpp @@ -489,7 +489,7 @@ namespace db { cursor::pow cur = MONERO_UNWRAP(lmdb::open_cursor(txn, tbl)); - MDB_val key = lmdb::to_val(blocks_version); + MDB_val key = lmdb::to_val(pows_version); int err = mdb_cursor_get(cur.get(), &key, nullptr, MDB_SET); if (err) {