Skip to content

Commit

Permalink
feat(prospective-parachains) implement ReputationAggregator
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielDDHM committed Dec 10, 2024
1 parent ef57de4 commit 99f25e2
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions dot/parachain/util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,6 @@ func (r *ReputationAggregator) add(peerID peer.ID, rep UnifiedReputationChange)
r.byPeer[peerID] += rep.CostOrBenefit()
}

// AddReputation updates a batch with a reputation change for a peer.
func AddReputation(batch map[peer.ID]int32, peerID peer.ID, rep UnifiedReputationChange) {
batch[peerID] += rep.CostOrBenefit()
}

// SigningKeyAndIndex finds the first key we can sign with from the given set of validators,
// if any, and returns it along with the validator index.
func SigningKeyAndIndex(
Expand Down

0 comments on commit 99f25e2

Please sign in to comment.