Skip to content

Commit

Permalink
fix: request status when metadata is old or non-existent in onMetadata()
Browse files Browse the repository at this point in the history
  • Loading branch information
twoeths committed Jan 13, 2025
1 parent 8c76989 commit 323cbe0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/beacon-node/src/network/peers/peerManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -340,10 +340,10 @@ export class PeerManager {
this.config.CUSTODY_REQUIREMENT,
custodySubnets,
};
// TODO: why request status again?
// if (oldMetadata === null || oldMetadata.csc !== peerData.metadata.csc) {
// void this.requestStatus(peer, this.statusCache.get());
// }
// request status again in order to update network's datacolumns of this peer
if (oldMetadata === null || oldMetadata.csc !== peerData.metadata.csc) {
void this.requestStatus(peer, this.statusCache.get());
}
}
}

Expand Down

0 comments on commit 323cbe0

Please sign in to comment.