aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/server.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2015-04-24 23:04:41 +0800
committerPéter Szilágyi <peterke@gmail.com>2015-04-24 23:04:41 +0800
commit8646365b42ddae30e596835b4512792ca11196a5 (patch)
tree03977b5bf677fa2a7e57953fba28c0aa21da6a88 /p2p/server.go
parent6def110c37d4d43402c4b658ce6b291400f840e5 (diff)
downloadgo-tangerine-8646365b42ddae30e596835b4512792ca11196a5.tar
go-tangerine-8646365b42ddae30e596835b4512792ca11196a5.tar.gz
go-tangerine-8646365b42ddae30e596835b4512792ca11196a5.tar.bz2
go-tangerine-8646365b42ddae30e596835b4512792ca11196a5.tar.lz
go-tangerine-8646365b42ddae30e596835b4512792ca11196a5.tar.xz
go-tangerine-8646365b42ddae30e596835b4512792ca11196a5.tar.zst
go-tangerine-8646365b42ddae30e596835b4512792ca11196a5.zip
cmd/bootnode, eth, p2p, p2p/discover: use a fancier db design
Diffstat (limited to 'p2p/server.go')
-rw-r--r--p2p/server.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/p2p/server.go b/p2p/server.go
index 5f1b80f51..5c5883ae8 100644
--- a/p2p/server.go
+++ b/p2p/server.go
@@ -59,9 +59,9 @@ type Server struct {
// with the rest of the network.
BootstrapNodes []*discover.Node
- // SeedCache is the database containing the previously seen live nodes in
- // the network to use as potential bootstrap seeds.
- SeedCache *discover.Cache
+ // NodeDatabase is the path to the database containing the previously seen
+ // live nodes in the network.
+ NodeDatabase string
// Protocols should contain the protocols supported
// by the server. Matching protocols are launched for
@@ -201,7 +201,7 @@ func (srv *Server) Start() (err error) {
}
// node table
- ntab, err := discover.ListenUDP(srv.PrivateKey, srv.ListenAddr, srv.NAT, srv.SeedCache)
+ ntab, err := discover.ListenUDP(srv.PrivateKey, srv.ListenAddr, srv.NAT, srv.NodeDatabase)
if err != nil {
return err
}