Skip to content

Commit

Permalink
Merge pull request #4800 from IntersectMBO/karknu/disable_mean
Browse files Browse the repository at this point in the history
Disable mean reward for new peers
  • Loading branch information
karknu authored Feb 8, 2024
2 parents a23a36c + 2162ea7 commit 436d902
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions ouroboros-network/CHANGELOG.md
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 -}

0 comments on commit 436d902

Please sign in to comment.