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 16aaabe commit c6fe39cCopy full SHA for c6fe39c
category/mpt/db.cpp
@@ -1255,8 +1255,8 @@ uint64_t Db::get_latest_finalized_version() const
1255
uint64_t Db::get_latest_verified_version() const
1256
{
1257
MONAD_ASSERT(impl_);
1258
- MONAD_ASSERT(is_on_disk());
1259
- return impl_->aux().get_latest_verified_version();
+ return is_on_disk() ? impl_->aux().get_latest_verified_version()
+ : INVALID_BLOCK_NUM;
1260
}
1261
1262
bytes32_t Db::get_latest_voted_block_id() const
0 commit comments