Skip to content

Commit

Permalink
Update reconstruction status on PendingComponents from cache instead …
Browse files Browse the repository at this point in the history
…of the clone.
  • Loading branch information
jimmygchen committed Jul 11, 2024
1 parent 0f355a7 commit 808e84a
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -882,7 +882,14 @@ impl<T: BeaconChainTypes> OverflowLRUCache<T> {
.map(|r| self.should_reconstruct(&r, &pending_components))?;

if should_reconstruct {
pending_components.reconstruction_started();
self.critical
.write()
.in_memory
.get_mut(&block_root)
.map(|pending_components| {
pending_components.reconstruction_started();
});

metrics::inc_counter(&KZG_DATA_COLUMN_RECONSTRUCTION_ATTEMPTS);
let timer = metrics::start_timer(&metrics::DATA_AVAILABILITY_RECONSTRUCTION_TIME);

Expand Down

0 comments on commit 808e84a

Please sign in to comment.