Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: dominant-strategies/go-quai
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: edd5bfd2c9074e185c3100da47fa49d0293915b5
Choose a base ref
..
head repository: dominant-strategies/go-quai
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: a550f1fbaa8bce5b04782027d9043963c2883811
Choose a head ref
Showing with 3 additions and 3 deletions.
  1. +3 −3 p2p/node/peerManager/peerManager.go
6 changes: 3 additions & 3 deletions p2p/node/peerManager/peerManager.go
Original file line number Diff line number Diff line change
@@ -510,21 +510,21 @@ func (pm *BasicPeerManager) getBestPeers(topic string) map[p2p.PeerID]struct{} {
if db, ok := pm.peerDBs[topic]; ok {
return pm.getPeersHelper(db[Best], c_minBestPeersFromDb)
}
return nil
return make(map[peer.ID]struct{})
}

func (pm *BasicPeerManager) getResponsivePeers(topic string) map[p2p.PeerID]struct{} {
if db, ok := pm.peerDBs[topic]; ok {
return pm.getPeersHelper(db[Responsive], c_minBestPeersFromDb)
}
return nil
return make(map[peer.ID]struct{})
}

func (pm *BasicPeerManager) getLastResortPeers(topic string) map[p2p.PeerID]struct{} {
if db, ok := pm.peerDBs[topic]; ok {
return pm.getPeersHelper(db[LastResort], c_minBestPeersFromDb)
}
return nil
return make(map[peer.ID]struct{})
}

func (pm *BasicPeerManager) AdjustPeerQuality(peer p2p.PeerID, topic string, adjFn func(int) int) {