Skip to content

Commit

Permalink
Fix getting shard client block id
Browse files Browse the repository at this point in the history
  • Loading branch information
SpyCheese committed Jan 22, 2024
1 parent 42d4c05 commit f8fdb90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions validator/manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2460,8 +2460,8 @@ void ValidatorManagerImpl::update_shard_client_state(BlockIdExt masterchain_bloc
}

void ValidatorManagerImpl::get_shard_client_state(bool from_db, td::Promise<BlockIdExt> promise) {
if (!shard_client_.empty() && !from_db) {
td::actor::send_closure(shard_client_, &ShardClient::get_processed_masterchain_block_id, std::move(promise));
if (shard_client_handle_ && !from_db) {
promise.set_result(shard_client_handle_->id());
} else {
td::actor::send_closure(db_, &Db::get_shard_client_state, std::move(promise));
}
Expand Down

0 comments on commit f8fdb90

Please sign in to comment.