mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
minor bugfix
This commit is contained in:
parent
4e2624459b
commit
dbde9c1c40
9 changed files with 24 additions and 10 deletions
|
@ -1663,14 +1663,6 @@ void ValidatorManagerImpl::completed_prestart_sync() {
|
|||
}
|
||||
|
||||
void ValidatorManagerImpl::new_masterchain_block() {
|
||||
update_shards();
|
||||
update_shard_blocks();
|
||||
|
||||
if (!shard_client_.empty()) {
|
||||
td::actor::send_closure(shard_client_, &ShardClient::new_masterchain_block_notification,
|
||||
last_masterchain_block_handle_, last_masterchain_state_);
|
||||
}
|
||||
|
||||
if (last_masterchain_seqno_ > 0 && last_masterchain_block_handle_->is_key_block()) {
|
||||
last_key_block_handle_ = last_masterchain_block_handle_;
|
||||
if (last_key_block_handle_->id().seqno() > last_known_key_block_handle_->id().seqno()) {
|
||||
|
@ -1679,6 +1671,14 @@ void ValidatorManagerImpl::new_masterchain_block() {
|
|||
}
|
||||
}
|
||||
|
||||
update_shards();
|
||||
update_shard_blocks();
|
||||
|
||||
if (!shard_client_.empty()) {
|
||||
td::actor::send_closure(shard_client_, &ShardClient::new_masterchain_block_notification,
|
||||
last_masterchain_block_handle_, last_masterchain_state_);
|
||||
}
|
||||
|
||||
if (last_masterchain_seqno_ % 1024 == 0) {
|
||||
LOG(WARNING) << "applied masterchain block " << last_masterchain_block_id_;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue