Skip to content

Commit

Permalink
Merge
Browse files Browse the repository at this point in the history
  • Loading branch information
nikurt committed Apr 13, 2023
1 parent 00f70d4 commit 0855002
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions chain/client/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ use near_chunks::logic::{
use near_chunks::ShardsManager;
use near_client_primitives::debug::ChunkProduction;
use near_client_primitives::types::{Error, ShardSyncDownload, ShardSyncStatus};
use near_epoch_manager::shard_tracker::ShardTracker;
use near_network::types::{AccountKeys, ChainInfo, PeerManagerMessageRequest, SetChainInfo};
use near_network::types::{
HighestHeightPeerInfo, NetworkRequests, PeerManagerAdapter, ReasonForBan,
Expand Down Expand Up @@ -359,7 +360,7 @@ impl Client {
block.header().prev_hash(),
shard_id,
false,
self.runtime_adapter.as_ref(),
&self.shard_tracker,
) {
self.sharded_tx_pool.reintroduce_transactions(
shard_id,
Expand Down Expand Up @@ -1596,7 +1597,8 @@ impl Client {
&encoded_chunk,
merkle_paths.clone(),
Some(&validator_id),
self.runtime_adapter.as_ref(),
self.runtime_adapter.epoch_manager_adapter(),
&self.shard_tracker,
)?;
persist_chunk(partial_chunk.clone(), Some(shard_chunk), self.chain.mut_store())?;
self.on_chunk_header_ready_for_inclusion(encoded_chunk.cloned_header(), validator_id);
Expand Down
2 changes: 1 addition & 1 deletion chain/client/src/client_actor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1657,7 +1657,7 @@ impl ClientActor {
&prev_hash,
*x,
true,
self.client.runtime_adapter.as_ref(),
&self.client.shard_tracker,
)
})
.collect();
Expand Down

0 comments on commit 0855002

Please sign in to comment.