Skip to content

Commit

Permalink
fix compilcation issue due to merging
Browse files Browse the repository at this point in the history
  • Loading branch information
Min Zhang committed Apr 26, 2023
1 parent 39628bf commit 944dd70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chain/chunks/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1237,7 +1237,7 @@ impl ShardsManager {
}
};

if !self.epoch_manager.verify_chunk_header_signature(header, &epoch_id, &ancestor_hash)? {
if !self.runtime_adapter.verify_chunk_header_signature(header, &epoch_id, &ancestor_hash)? {
return if epoch_id_confirmed {
byzantine_assert!(false);
Err(Error::InvalidChunkSignature)
Expand All @@ -1249,7 +1249,7 @@ impl ShardsManager {
};
}

if header.shard_id() >= self.epoch_manager.num_shards(&epoch_id)? {
if header.shard_id() >= self.runtime_adapter.num_shards(&epoch_id)? {
return if epoch_id_confirmed {
byzantine_assert!(false);
Err(Error::InvalidChunkShardId)
Expand Down

0 comments on commit 944dd70

Please sign in to comment.