@@ -639,7 +639,7 @@ impl ShredCodeTrait for ShredCode {
639
639
}
640
640
}
641
641
642
- // Obtains parent's hash by joining two sibiling nodes in merkle tree.
642
+ // Obtains parent's hash by joining two sibling nodes in merkle tree.
643
643
fn join_nodes < S : AsRef < [ u8 ] > , T : AsRef < [ u8 ] > > ( node : S , other : T ) -> Hash {
644
644
let node = & node. as_ref ( ) [ ..SIZE_OF_MERKLE_PROOF_ENTRY ] ;
645
645
let other = & other. as_ref ( ) [ ..SIZE_OF_MERKLE_PROOF_ENTRY ] ;
@@ -915,7 +915,7 @@ pub(super) fn recover(
915
915
shred. merkle_node ( )
916
916
} ) ;
917
917
let tree = make_merkle_tree ( nodes) ?;
918
- // The attched signature verfies only if we obtain the same Merkle root.
918
+ // The attached signature verifies only if we obtain the same Merkle root.
919
919
// Because shreds obtained from turbine or repair are sig-verified, this
920
920
// also means that we don't need to verify signatures for recovered shreds.
921
921
if tree. last ( ) != Some ( & merkle_root) {
@@ -1202,7 +1202,7 @@ pub(super) fn make_shreds_from_data(
1202
1202
if !data. is_empty ( ) || shreds. is_empty ( ) {
1203
1203
// Should generate at least one data shred (which may have no data).
1204
1204
// Last erasure batch should also be padded with empty data shreds to
1205
- // make >= 32 data shreds. This gaurantees that the batch cannot be
1205
+ // make >= 32 data shreds. This guarantees that the batch cannot be
1206
1206
// recovered unless 32+ shreds are received from turbine or repair.
1207
1207
let min_num_data_shreds = if is_last_in_slot {
1208
1208
DATA_SHREDS_PER_FEC_BLOCK
0 commit comments