mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Fix getting cell-db-reader in AsyncStateSerializer (#546)
This commit is contained in:
parent
fcf59b4eb5
commit
ac50074ff6
3 changed files with 45 additions and 44 deletions
|
@ -293,7 +293,9 @@ class DynamicBagOfCellsDbImpl : public DynamicBagOfCellsDb, private ExtCellCreat
|
|||
return db_->load_cell(hash);
|
||||
}
|
||||
TRY_RESULT(load_result, cell_loader_->load(hash, true, *this));
|
||||
CHECK(load_result.status == CellLoader::LoadResult::Ok);
|
||||
if (load_result.status != CellLoader::LoadResult::Ok) {
|
||||
return td::Status::Error("cell not found");
|
||||
}
|
||||
return std::move(load_result.cell());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue