1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-03-09 15:40:10 +00:00
new database
fift/func bugfixes
This commit is contained in:
ton 2019-11-15 18:02:37 +04:00
parent 950e292264
commit e30d98eb30
110 changed files with 6102 additions and 2075 deletions

View file

@ -194,11 +194,13 @@ void DownloadShardState::written_shard_state(td::Ref<ShardState> state) {
handle_->set_applied();
handle_->set_split(state_->before_split());
auto P = td::PromiseCreator::lambda([SelfId = actor_id(this)](td::Result<td::Unit> R) {
auto P = td::PromiseCreator::lambda([SelfId = actor_id(this), handle = handle_](td::Result<td::Unit> R) {
CHECK(handle->handle_moved_to_archive());
CHECK(handle->moved_to_archive())
R.ensure();
td::actor::send_closure(SelfId, &DownloadShardState::written_block_handle);
});
handle_->flush(manager_, handle_, std::move(P));
td::actor::send_closure(manager_, &ValidatorManager::archive, handle_, std::move(P));
}
void DownloadShardState::written_block_handle() {