diff options
author | Péter Szilágyi <peterke@gmail.com> | 2015-04-23 23:47:24 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2015-04-24 16:23:20 +0800 |
commit | 5f735d6fce10b4552b0a6d3eb6503c5a302f4f61 (patch) | |
tree | 781d93a4c91ac664b95d97b96d3ac6605bfbb57c /eth/backend.go | |
parent | 936c8e19ff3db376fdd1ed53772c51c817a72112 (diff) | |
download | go-tangerine-5f735d6fce10b4552b0a6d3eb6503c5a302f4f61.tar go-tangerine-5f735d6fce10b4552b0a6d3eb6503c5a302f4f61.tar.gz go-tangerine-5f735d6fce10b4552b0a6d3eb6503c5a302f4f61.tar.bz2 go-tangerine-5f735d6fce10b4552b0a6d3eb6503c5a302f4f61.tar.lz go-tangerine-5f735d6fce10b4552b0a6d3eb6503c5a302f4f61.tar.xz go-tangerine-5f735d6fce10b4552b0a6d3eb6503c5a302f4f61.tar.zst go-tangerine-5f735d6fce10b4552b0a6d3eb6503c5a302f4f61.zip |
cmd, eth, p2p, p2p/discover: init and clean up the seed cache
Diffstat (limited to 'eth/backend.go')
-rw-r--r-- | eth/backend.go | 2 |
1 files changed, 2 insertions, 0 deletions
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 |