Skip to content

Commit c3042b2

Browse files
committed
fix
1 parent 382dd28 commit c3042b2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

base_layer/core/src/base_node/proto/chain_metadata.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ impl TryFrom<proto::ChainMetadata> for ChainMetadata {
4747
metadata.accumulated_difficulty_high.len()
4848
));
4949
}
50-
let mut bytes = metadata.accumulated_difficulty_low.to_vec();
51-
bytes.extend_from_slice(&metadata.accumulated_difficulty_high);
50+
let mut bytes = metadata.accumulated_difficulty_high.to_vec();
51+
bytes.extend_from_slice(&metadata.accumulated_difficulty_low);
5252
let accumulated_difficulty = U512::from_big_endian(&bytes);
5353
let best_block_height = metadata.best_block_height;
5454

@@ -88,8 +88,8 @@ impl From<ChainMetadata> for proto::ChainMetadata {
8888
best_block_height: metadata.best_block_height(),
8989
best_block_hash: metadata.best_block_hash().to_vec(),
9090
pruned_height: metadata.pruned_height(),
91-
accumulated_difficulty_low: accumulated_difficulty[0..32].to_vec(),
92-
accumulated_difficulty_high: accumulated_difficulty[33..64].to_vec(),
91+
accumulated_difficulty_low: accumulated_difficulty[33..64].to_vec(),
92+
accumulated_difficulty_high: accumulated_difficulty[0..32].to_vec(),
9393
timestamp: metadata.timestamp(),
9494
}
9595
}

0 commit comments

Comments
 (0)