mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Persistent optimization (#382)
* State serialization consuming less RAM * Move large-boc-serializer to crypto/vm, refactor code Co-authored-by: SpyCheese <mikle98@yandex.ru>
This commit is contained in:
parent
c04eb8e4f3
commit
89b8717cf8
21 changed files with 665 additions and 157 deletions
|
@ -530,6 +530,10 @@ void ValidatorManagerImpl::get_block_handle(BlockIdExt id, bool force, td::Promi
|
|||
td::actor::send_closure(db_, &Db::get_block_handle, id, std::move(P));
|
||||
}
|
||||
|
||||
void ValidatorManagerImpl::get_cell_db_reader(td::Promise<std::shared_ptr<vm::CellDbReader>> promise) {
|
||||
td::actor::send_closure(db_, &Db::get_cell_db_reader, std::move(promise));
|
||||
}
|
||||
|
||||
void ValidatorManagerImpl::register_block_handle(BlockHandle handle, td::Promise<BlockHandle> promise) {
|
||||
auto it = handles_.find(handle->id());
|
||||
if (it != handles_.end()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue