Skip to content

Commit

Permalink
chore: log unknown block roots
Browse files Browse the repository at this point in the history
  • Loading branch information
twoeths committed May 15, 2023
1 parent 547bff2 commit 4214732
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/beacon-node/src/sync/unknownBlock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ export class UnknownBlockSync {
downloadAttempts: 0,
};
this.pendingBlocks.set(blockRootHex, pendingBlock);
this.logger.verbose("Added unknown block parent to pendingBlocks", {
block: blockRootHex,
parent: parentBlockRootHex,
});
}
pendingBlock.peerIdStrs.add(peerIdStr);

Expand All @@ -135,6 +139,7 @@ export class UnknownBlockSync {
downloadAttempts: 0,
};
this.pendingBlocks.set(blockRootHex, pendingBlock);
this.logger.verbose("Added unknown block to pendingBlocks", {blockRootHex});
}

if (peerIdStr) {
Expand Down

0 comments on commit 4214732

Please sign in to comment.