Skip to content

Commit

Permalink
remove debugging modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
stedfn committed Dec 17, 2024
1 parent de22dfa commit 29d9e66
Showing 1 changed file with 8 additions and 21 deletions.
29 changes: 8 additions & 21 deletions core/primitives/src/stateless_validation/partial_witness.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,10 @@ pub const MAX_COMPRESSED_STATE_WITNESS_SIZE: ByteSize =
/// reconstruct the full state witness due to the Reed Solomon erasure encoding.
#[derive(Clone, PartialEq, Eq, BorshSerialize, BorshDeserialize, ProtocolSchema)]
pub struct PartialEncodedStateWitness {
pub inner: PartialEncodedStateWitnessInner,
inner: PartialEncodedStateWitnessInner,
pub signature: Signature,
}

/*
#[derive(Clone, PartialEq, Eq, BorshSerialize, BorshDeserialize, ProtocolSchema)]
pub struct PartialEncodedStateWitnessInner {
epoch_id: EpochId,
shard_id: ShardId,
height_created: BlockHeight,
part_ord: usize,
part: Box<[u8]>,
encoded_length: usize,
signature_differentiator: SignatureDifferentiator,
}
*/

impl Debug for PartialEncodedStateWitness {
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
f.debug_struct("PartialEncodedStateWitness")
Expand Down Expand Up @@ -104,13 +91,13 @@ impl PartialEncodedStateWitness {

#[derive(Clone, PartialEq, Eq, BorshSerialize, BorshDeserialize, ProtocolSchema)]
pub struct PartialEncodedStateWitnessInner {
pub epoch_id: EpochId,
pub shard_id: ShardId,
pub height_created: BlockHeight,
pub part_ord: usize,
pub part: Box<[u8]>,
pub encoded_length: usize,
pub signature_differentiator: SignatureDifferentiator,
epoch_id: EpochId,
shard_id: ShardId,
height_created: BlockHeight,
part_ord: usize,
part: Box<[u8]>,
encoded_length: usize,
signature_differentiator: SignatureDifferentiator,
}

impl PartialEncodedStateWitnessInner {
Expand Down

0 comments on commit 29d9e66

Please sign in to comment.