mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
fixed download of an serialized state
This commit is contained in:
parent
ceaed40ac4
commit
6143b2051f
3 changed files with 18 additions and 6 deletions
|
@ -94,7 +94,8 @@ void AsyncStateSerializer::next_iteration() {
|
|||
td::actor::send_closure(manager_, &ValidatorManager::get_block_handle, last_block_id_, true, std::move(P));
|
||||
return;
|
||||
}
|
||||
if (!masterchain_handle_->inited_unix_time() || !masterchain_handle_->inited_is_key_block()) {
|
||||
if (!masterchain_handle_->inited_unix_time() || !masterchain_handle_->inited_is_key_block() ||
|
||||
!masterchain_handle_->is_applied()) {
|
||||
return;
|
||||
}
|
||||
CHECK(masterchain_handle_->id() == last_block_id_);
|
||||
|
@ -213,6 +214,7 @@ void AsyncStateSerializer::got_shard_state(BlockHandle handle, td::Ref<ShardStat
|
|||
});
|
||||
td::actor::send_closure(manager_, &ValidatorManager::store_persistent_state_file, handle->id(),
|
||||
masterchain_handle_->id(), std::move(B), std::move(P));
|
||||
LOG(INFO) << "storing persistent state for " << masterchain_handle_->id().seqno() << ":" << handle->id().id.shard;
|
||||
next_idx_++;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue