Skip to content

Commit

Permalink
Merge 37b17ac into b2ad7b6
Browse files Browse the repository at this point in the history
  • Loading branch information
nflaig authored Jan 27, 2025
2 parents b2ad7b6 + 37b17ac commit 89f818a
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions packages/beacon-node/src/sync/range/chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {ChainForkConfig} from "@lodestar/config";
import {Epoch, Root, Slot, phase0} from "@lodestar/types";
import {ErrorAborted, Logger, toRootHex} from "@lodestar/utils";
import {BlockInput, BlockInputType} from "../../chain/blocks/types.js";
import {PeerAction} from "../../network/index.js";
import {PeerAction, prettyPrintPeerIdStr} from "../../network/index.js";
import {ItTrigger} from "../../util/itTrigger.js";
import {PeerIdStr} from "../../util/peerId.js";
import {wrapError} from "../../util/wrapError.js";
Expand Down Expand Up @@ -410,10 +410,19 @@ export class SyncChain {
if (hasPostDenebBlocks) {
Object.assign(downloadInfo, {blobs});
}
this.logger.debug("Downloaded batch", {id: this.logId, ...batch.getMetadata(), ...downloadInfo});
this.logger.debug("Downloaded batch", {
id: this.logId,
...batch.getMetadata(),
...downloadInfo,
peer: prettyPrintPeerIdStr(peer),
});
this.triggerBatchProcessor();
} else {
this.logger.verbose("Batch download error", {id: this.logId, ...batch.getMetadata()}, res.err);
this.logger.verbose(
"Batch download error",
{id: this.logId, ...batch.getMetadata(), peer: prettyPrintPeerIdStr(peer)},
res.err
);
batch.downloadingError(); // Throws after MAX_DOWNLOAD_ATTEMPTS
}

Expand Down

0 comments on commit 89f818a

Please sign in to comment.