Skip to content

Commit

Permalink
fix: partially downloaded batch
Browse files Browse the repository at this point in the history
  • Loading branch information
twoeths committed Jan 13, 2025
1 parent e8bc729 commit 765bd6f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/beacon-node/src/sync/range/chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -436,11 +436,13 @@ export class SyncChain {
if (hasPostDenebBlocks) {
Object.assign(downloadInfo, {blobs, dataColumns});
}
this.logger.debug("Downloaded batch", {id: this.logId, ...batch.getMetadata(), ...downloadInfo, peer});
this.logger.debug("Fully downloaded batch", {id: this.logId, ...batch.getMetadata(), ...downloadInfo, peer});
this.triggerBatchProcessor();
} else {
this.logger.debug("Partially downloaded batch", {id: this.logId, ...batch.getMetadata(), peer});
const pendingDataColumns = res.result.pendingDataColumns?.join(",");
this.logger.debug("Partially downloaded batch", {id: this.logId, ...batch.getMetadata(), pendingDataColumns, peer});
// the flow will continue to call triggerBatchDownloader() below
}
this.triggerBatchProcessor();
} else {
this.logger.verbose("Batch download error", {id: this.logId, ...batch.getMetadata()}, res.err);
batch.downloadingError(); // Throws after MAX_DOWNLOAD_ATTEMPTS
Expand Down

0 comments on commit 765bd6f

Please sign in to comment.