Skip to content

Commit

Permalink
Do not apply P3 penalty if peers are pruned from topic mesh (#212)
Browse files Browse the repository at this point in the history
  • Loading branch information
twoeths authored Mar 22, 2022
1 parent 9f3e1ae commit 90c50b5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ts/score/peer-score.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ export class PeerScore {
}

tstats.inMesh = false
tstats.meshMessageDeliveriesActive = false
})

pstats.connected = false
Expand Down Expand Up @@ -279,6 +280,7 @@ export class PeerScore {
tstats.meshFailurePenalty += deficit * deficit
}
tstats.inMesh = false
tstats.meshMessageDeliveriesActive = false
this.scoreCache.set(id, { score: null, cacheUntil: 0 })
}

Expand Down

0 comments on commit 90c50b5

Please sign in to comment.