Skip to content

Commit

Permalink
fix: return MAX_SCORE for MaxScore impl
Browse files Browse the repository at this point in the history
  • Loading branch information
twoeths committed May 11, 2023
1 parent c6b3a78 commit 26b660f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/beacon-node/src/network/peers/score/score.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export class RealScore implements IPeerScore {
/** An implementation of IPeerScore for testing */
export class MaxScore implements IPeerScore {
getScore(): number {
return DEFAULT_SCORE;
return MAX_SCORE;
}

getGossipScore(): number {
Expand All @@ -154,7 +154,7 @@ export class MaxScore implements IPeerScore {
lodestarScore: DEFAULT_SCORE,
gossipScore: DEFAULT_SCORE,
ignoreNegativeGossipScore: false,
score: DEFAULT_SCORE,
score: MAX_SCORE,
lastUpdate: Date.now(),
};
}
Expand Down

0 comments on commit 26b660f

Please sign in to comment.