From 29d9e66dcc0dad2da96f71284891c010fe7811f2 Mon Sep 17 00:00:00 2001 From: Stefan Neamtu Date: Tue, 17 Dec 2024 13:35:55 +0200 Subject: [PATCH] remove debugging modifications --- .../stateless_validation/partial_witness.rs | 29 +++++-------------- 1 file changed, 8 insertions(+), 21 deletions(-) diff --git a/core/primitives/src/stateless_validation/partial_witness.rs b/core/primitives/src/stateless_validation/partial_witness.rs index 73b7fae38c0..44d235b1657 100644 --- a/core/primitives/src/stateless_validation/partial_witness.rs +++ b/core/primitives/src/stateless_validation/partial_witness.rs @@ -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") @@ -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 {