lighthouse icon indicating copy to clipboard operation
lighthouse copied to clipboard

Fix for #7212 Call engine_getBlobs as soon as receiving a valid data_column_sidecar from gossip

Open SunnysidedJ opened this issue 8 months ago • 5 comments

Issue Addressed

#7212 Call engine_getBlobs as soon as receiving a valid data_column_sidecar from gossip

Proposed Changes

Copied how blobs are fetched when a block is gossiped. Test in progress, and code will be refactored to merge common code between fetching logics from block and column gossips

Additional Info

Please find the comments below

SunnysidedJ avatar Apr 17 '25 01:04 SunnysidedJ

Lock while fetching from EL yet enabled

SunnysidedJ avatar Apr 17 '25 01:04 SunnysidedJ

@SunnysidedJ I added a commit based on your branch to illustrate my suggestion https://github.com/sigp/lighthouse/commit/6fe3c5bc2a372ab1a90dd976f81c16915a904590

Let me know if you disagree with the approach. Feel free to cherry-pick the commit to this PR

pawanjay176 avatar Apr 21 '25 23:04 pawanjay176

Some required checks have failed. Could you please take a look @SunnysidedJ? 🙏

mergify[bot] avatar May 19 '25 05:05 mergify[bot]

Thinking about this again, I have some thoughts about whether this would materially help reduce block delays

  • The fetch EL blobs operation no longer compute proofs, and it's now a very fast operation.
  • We would still have to wait for the block to arrive before it can be imported.

The diff doesn't look too bad though. I think we'd have to also avoid calling EL multiple times, which if exists, may worsen the race condition we currently have - there are many concurrent paths that lead to block import - if we do this we'd have to track carefully to ensure we don't attempt multiple imports.

  1. reconstruction
  2. gossip data columns
  3. EL getblobs

#7493 greatly reduces the likelihood of this from happening, but does not completely prevent it (issue here https://github.com/sigp/lighthouse/issues/6439 ). If we do go down this path to trigger getBlobs from gossip data column, it would increase the chance of race condition and we should definitely try to avoid duplicate processing & imports - which will add complexity - so it might be worth weighing the trade-offs here.

jimmygchen avatar May 29 '25 01:05 jimmygchen

Hi @SunnysidedJ, this pull request has been closed automatically due to 30 days of inactivity. If you’d like to continue working on it, feel free to reopen at any time.

mergify[bot] avatar May 30 '25 07:05 mergify[bot]

Hi @SunnysidedJ, this pull request has been closed automatically due to 30 days of inactivity. If you’d like to continue working on it, feel free to reopen at any time.

mergify[bot] avatar Jun 29 '25 09:06 mergify[bot]