Fix pows_version in check_pow (#108)

This commit is contained in:
Lee *!* Clagett 2024-04-06 13:04:38 -04:00 committed by GitHub
parent 7a2c91313d
commit 139a5b9302
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -489,7 +489,7 @@ namespace db
{ {
cursor::pow cur = MONERO_UNWRAP(lmdb::open_cursor<cursor::close_pow>(txn, tbl)); cursor::pow cur = MONERO_UNWRAP(lmdb::open_cursor<cursor::close_pow>(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); int err = mdb_cursor_get(cur.get(), &key, nullptr, MDB_SET);
if (err) if (err)
{ {