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

Disable mean reward for new peers #4800

Merged
merged 1 commit into from Feb 8, 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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions ouroboros-network/CHANGELOG.md
Expand Up @@ -52,6 +52,8 @@
* Fix hot demototion by having blockfetch give chainsync a chance to exit
cleanly before killing it.

* Disable mean reward for new peers

## 0.11.0.0 -- 2023-01-22

### Breaking changes
Expand Down
Expand Up @@ -595,7 +595,8 @@ adjustAvg :: PeerMetricsConfiguration
-> SlotNo -- ^ current slot
-> Int
-> Int
adjustAvg PeerMetricsConfiguration { maxEntriesToTrack } minSlotNo joinedSlotNo lastSlotNo avg
adjustAvg _ _ _ _ _ = 0
{-adjustAvg PeerMetricsConfiguration { maxEntriesToTrack } minSlotNo joinedSlotNo lastSlotNo avg
-- when there are only a few results in the 'PeerMetricsState' we don't
-- take into account the average. This allows the system to start, without
-- penalising the peers which we connected to early.
Expand All @@ -613,4 +614,4 @@ adjustAvg PeerMetricsConfiguration { maxEntriesToTrack } minSlotNo joinedSlotNo
minSlot, lastSlot, joinedSlot :: Int
minSlot = maybe 1 slotToInt minSlotNo
lastSlot = slotToInt lastSlotNo
joinedSlot = slotToInt joinedSlotNo
joinedSlot = slotToInt joinedSlotNo -}