File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
base_layer/core/src/base_node/proto Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments