Skip to content

Commit

Permalink
fix: correct near#4938
Browse files Browse the repository at this point in the history
  • Loading branch information
matklad committed Oct 6, 2021
1 parent 9a41274 commit 3113b02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chain/chain/src/chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -391,11 +391,11 @@ impl Chain {
BlockHeaderV3,
protocol_version,
{
let validator_stakes = bps.into_iter().map(|(bp, _)| bp).collect();
let validator_stakes = bps.into_iter().map(|(bp, _)| bp.into_v1()).collect();
Chain::compute_collection_hash(validator_stakes)
},
{
let validator_stakes = bps.into_iter().map(|(bp, _)| bp.into_v1()).collect();
let validator_stakes = bps.into_iter().map(|(bp, _)| bp).collect();
Chain::compute_collection_hash(validator_stakes)
}
)
Expand Down

0 comments on commit 3113b02

Please sign in to comment.