Skip to content

Commit

Permalink
resolves mergify merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
behzadnouri committed Mar 6, 2023
1 parent 7add127 commit d4207e5
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions ledger/src/shred.rs
Original file line number Diff line number Diff line change
Expand Up @@ -659,22 +659,14 @@ pub mod layout {
match get_shred_variant(shred).ok()? {
ShredVariant::LegacyCode | ShredVariant::LegacyData => {
let offsets = self::legacy::SIGNED_MESSAGE_OFFSETS;
(offsets.end <= shred.len()).then_some(offsets)
(offsets.end <= shred.len()).then(|| offsets)
}
<<<<<<< HEAD
ShredVariant::MerkleData(proof_size) => {
merkle::ShredData::get_signed_data_offsets(proof_size)?
}
};
(offsets.end <= shred.len()).then(|| offsets)
=======
// Merkle shreds sign merkle tree root which can be recovered from
// the merkle proof embedded in the payload but itself is not
// stored the payload.
ShredVariant::MerkleCode(_) => None,
ShredVariant::MerkleData(_) => None,
}
>>>>>>> cf0a149ad (removes the merkle root from shreds binary (#29427))
}

pub(crate) fn get_reference_tick(shred: &[u8]) -> Result<u8, Error> {
Expand Down

0 comments on commit d4207e5

Please sign in to comment.