Skip to content

Commit 133acd3

Browse files
committed
feat(block validation): ledger
1 parent ece6e6a commit 133acd3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rust/immutable-ledger/src/serialize.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,8 @@ mod tests {
669669
let prev_block_hash = decoded_genesis.3 .0;
670670

671671
// last 64 bytes of encoding are the hash of the contents
672-
let prev_block_from_original_encoding = &encoded_block_genesis[110..];
672+
let prev_block_from_original_encoding =
673+
&encoded_block_genesis[encoded_block_genesis.len() - 64..];
673674

674675
assert_eq!(prev_block_hash, prev_block_from_original_encoding);
675676
}

0 commit comments

Comments
 (0)