mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 02:12:23 +00:00
p2p/discover: remove unused parameter of loadSeedNodes
This commit is contained in:
parent
ccb1e57ede
commit
1b77946ef5
1 changed files with 3 additions and 3 deletions
|
|
@ -124,7 +124,7 @@ func newTable(t transport, ourID NodeID, ourAddr *net.UDPAddr, nodeDBPath string
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
tab.seedRand()
|
tab.seedRand()
|
||||||
tab.loadSeedNodes(false)
|
tab.loadSeedNodes()
|
||||||
// Start the background expiration goroutine after loading seeds so that the search for
|
// Start the background expiration goroutine after loading seeds so that the search for
|
||||||
// seed nodes also considers older nodes that would otherwise be removed by the
|
// seed nodes also considers older nodes that would otherwise be removed by the
|
||||||
// expiration.
|
// expiration.
|
||||||
|
|
@ -419,7 +419,7 @@ func (tab *Table) doRefresh(done chan struct{}) {
|
||||||
// Load nodes from the database and insert
|
// Load nodes from the database and insert
|
||||||
// them. This should yield a few previously seen nodes that are
|
// them. This should yield a few previously seen nodes that are
|
||||||
// (hopefully) still alive.
|
// (hopefully) still alive.
|
||||||
tab.loadSeedNodes(true)
|
tab.loadSeedNodes()
|
||||||
|
|
||||||
// Run self lookup to discover new neighbor nodes.
|
// Run self lookup to discover new neighbor nodes.
|
||||||
tab.lookup(tab.self.ID, false)
|
tab.lookup(tab.self.ID, false)
|
||||||
|
|
@ -437,7 +437,7 @@ func (tab *Table) doRefresh(done chan struct{}) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (tab *Table) loadSeedNodes(bond bool) {
|
func (tab *Table) loadSeedNodes() {
|
||||||
seeds := tab.db.querySeeds(seedCount, seedMaxAge)
|
seeds := tab.db.querySeeds(seedCount, seedMaxAge)
|
||||||
seeds = append(seeds, tab.nursery...)
|
seeds = append(seeds, tab.nursery...)
|
||||||
for i := range seeds {
|
for i := range seeds {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue