From 5f735d6fce10b4552b0a6d3eb6503c5a302f4f61 Mon Sep 17 00:00:00 2001 From: Péter Szilágyi Date: Thu, 23 Apr 2015 18:47:24 +0300 Subject: cmd, eth, p2p, p2p/discover: init and clean up the seed cache --- eth/backend.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'eth/backend.go') diff --git a/eth/backend.go b/eth/backend.go index 356e7fd1a..382cfc832 100644 --- a/eth/backend.go +++ b/eth/backend.go @@ -179,6 +179,7 @@ func New(config *Config) (*Ethereum, error) { if err != nil { return nil, err } + seedDbPath := path.Join(config.DataDir, "seeds") // Perform database sanity checks d, _ := blockDb.Get([]byte("ProtocolVersion")) @@ -243,6 +244,7 @@ func New(config *Config) (*Ethereum, error) { NAT: config.NAT, NoDial: !config.Dial, BootstrapNodes: config.parseBootNodes(), + SeedCache: seedDbPath, } if len(config.Port) > 0 { eth.net.ListenAddr = ":" + config.Port -- cgit