Skip to content

Commit

Permalink
Add comment and logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmygchen committed Oct 11, 2024
1 parent 0e6eaa2 commit 9efa768
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,9 @@ pub struct DataAvailabilityCheckerInner<T: BeaconChainTypes> {
spec: Arc<ChainSpec>,
}

// This enum is only used internally within the crate in the reconstruction function to improve
// readability, so it's OK to not box the variant value, and it shouldn't impact memory much with
// the current usage, as it's deconstructed immediately.
#[allow(clippy::large_enum_variant)]
pub(crate) enum ReconstructColumnsDecision<E: EthSpec> {
Yes(PendingComponents<E>),
Expand Down
1 change: 1 addition & 0 deletions beacon_node/network/src/network_beacon_processor/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -911,6 +911,7 @@ impl<T: BeaconChainTypes> NetworkBeaconProcessor<T> {
error!(
self.log,
"Error during data column reconstruction";
"block_root" => %block_root,
"error" => ?e
);
None
Expand Down

0 comments on commit 9efa768

Please sign in to comment.