aboutsummaryrefslogtreecommitdiffstats
path: root/eth/peer.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2015-05-20 15:34:45 +0800
committerPéter Szilágyi <peterke@gmail.com>2015-05-20 15:34:45 +0800
commit3c8227b935fdc9eda7a6cfacc2e0d0d189e7bb36 (patch)
treef5c78da61ce00c637b6f05932162a645ba8581d1 /eth/peer.go
parent79042223dc5f2ae5d4a2ed73d18907440a963093 (diff)
downloaddexon-3c8227b935fdc9eda7a6cfacc2e0d0d189e7bb36.tar
dexon-3c8227b935fdc9eda7a6cfacc2e0d0d189e7bb36.tar.gz
dexon-3c8227b935fdc9eda7a6cfacc2e0d0d189e7bb36.tar.bz2
dexon-3c8227b935fdc9eda7a6cfacc2e0d0d189e7bb36.tar.lz
dexon-3c8227b935fdc9eda7a6cfacc2e0d0d189e7bb36.tar.xz
dexon-3c8227b935fdc9eda7a6cfacc2e0d0d189e7bb36.tar.zst
dexon-3c8227b935fdc9eda7a6cfacc2e0d0d189e7bb36.zip
eth: fix odd method names in peer set
Diffstat (limited to 'eth/peer.go')
-rw-r--r--eth/peer.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/eth/peer.go b/eth/peer.go
index a23449acd..fdd815293 100644
--- a/eth/peer.go
+++ b/eth/peer.go
@@ -213,9 +213,9 @@ func (ps *peerSet) Len() int {
return len(ps.peers)
}
-// BlockLackingPeers retrieves a list of peers that do not have a given block
-// in their set of known hashes.
-func (ps *peerSet) BlockLackingPeers(hash common.Hash) []*peer {
+// PeersWithoutBlock retrieves a list of peers that do not have a given block in
+// their set of known hashes.
+func (ps *peerSet) PeersWithoutBlock(hash common.Hash) []*peer {
ps.lock.RLock()
defer ps.lock.RUnlock()
@@ -228,9 +228,9 @@ func (ps *peerSet) BlockLackingPeers(hash common.Hash) []*peer {
return list
}
-// TxLackingPeers retrieves a list of peers that do not have a given transaction
+// PeersWithoutTx retrieves a list of peers that do not have a given transaction
// in their set of known hashes.
-func (ps *peerSet) TxLackingPeers(hash common.Hash) []*peer {
+func (ps *peerSet) PeersWithoutTx(hash common.Hash) []*peer {
ps.lock.RLock()
defer ps.lock.RUnlock()