Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix typos in un-/subscribing attnets logs #6454

Merged
merged 1 commit into from
Feb 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/beacon-node/src/network/subnets/attnetsService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,15 +147,15 @@ export class AttnetsService implements IAttnetsService {

/** Call ONLY ONCE: Two epoch before the fork, re-subscribe all existing random subscriptions to the new fork */
subscribeSubnetsToNextFork(nextFork: ForkName): void {
this.logger.info("Suscribing to random attnets to next fork", {nextFork});
this.logger.info("Subscribing to random attnets to next fork", {nextFork});
for (const subnet of this.subscriptionsRandom.getAll()) {
this.gossip.subscribeTopic({type: gossipType, fork: nextFork, subnet});
}
}

/** Call ONLY ONCE: Two epochs after the fork, un-subscribe all subnets from the old fork */
unsubscribeSubnetsFromPrevFork(prevFork: ForkName): void {
this.logger.info("Unsuscribing to random attnets from prev fork", {prevFork});
this.logger.info("Unsubscribing to random attnets from prev fork", {prevFork});
for (let subnet = 0; subnet < ATTESTATION_SUBNET_COUNT; subnet++) {
if (!this.opts.subscribeAllSubnets) {
this.gossip.unsubscribeTopic({type: gossipType, fork: prevFork, subnet});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export class DLLAttnetsService implements IAttnetsService {
* Call ONLY ONCE: Two epoch before the fork, re-subscribe all existing random subscriptions to the new fork
**/
subscribeSubnetsToNextFork(nextFork: ForkName): void {
this.logger.info("Suscribing to long lived attnets to next fork", {
this.logger.info("Subscribing to long lived attnets to next fork", {
nextFork,
subnets: Array.from(this.longLivedSubscriptions).join(","),
});
Expand All @@ -152,7 +152,7 @@ export class DLLAttnetsService implements IAttnetsService {
* Call ONLY ONCE: Two epochs after the fork, un-subscribe all subnets from the old fork
**/
unsubscribeSubnetsFromPrevFork(prevFork: ForkName): void {
this.logger.info("Unsuscribing to long lived attnets from prev fork", {prevFork});
this.logger.info("Unsubscribing to long lived attnets from prev fork", {prevFork});
for (let subnet = 0; subnet < ATTESTATION_SUBNET_COUNT; subnet++) {
if (!this.opts.subscribeAllSubnets) {
this.gossip.unsubscribeTopic({type: gossipType, fork: prevFork, subnet});
Expand Down
4 changes: 2 additions & 2 deletions packages/beacon-node/src/network/subnets/syncnetsService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,15 @@ export class SyncnetsService implements SubnetsService {

/** Call ONLY ONCE: Two epoch before the fork, re-subscribe all existing random subscriptions to the new fork */
subscribeSubnetsToNextFork(nextFork: ForkName): void {
this.logger.info("Suscribing to random attnets to next fork", {nextFork});
this.logger.info("Subscribing to random attnets to next fork", {nextFork});
for (const subnet of this.subscriptionsCommittee.getAll()) {
this.gossip.subscribeTopic({type: gossipType, fork: nextFork, subnet});
}
}

/** Call ONLY ONCE: Two epochs after the fork, un-subscribe all subnets from the old fork */
unsubscribeSubnetsFromPrevFork(prevFork: ForkName): void {
this.logger.info("Unsuscribing to random attnets from prev fork", {prevFork});
this.logger.info("Unsubscribing to random attnets from prev fork", {prevFork});
for (let subnet = 0; subnet < SYNC_COMMITTEE_SUBNET_COUNT; subnet++) {
if (!this.opts?.subscribeAllSubnets) {
this.gossip.unsubscribeTopic({type: gossipType, fork: prevFork, subnet});
Expand Down
Loading