diff options
author | obscuren <geffobscura@gmail.com> | 2014-12-15 19:35:21 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-12-15 19:35:21 +0800 |
commit | c7bc684909ab3d135d25a718d5ff2c725816e0fc (patch) | |
tree | 7ae01f58ae1527dbe2f6a35c4b032550712dbb6e /eth | |
parent | 96272e19a6b7a3163ec53f45e04407e9d2ff8414 (diff) | |
download | go-tangerine-c7bc684909ab3d135d25a718d5ff2c725816e0fc.tar go-tangerine-c7bc684909ab3d135d25a718d5ff2c725816e0fc.tar.gz go-tangerine-c7bc684909ab3d135d25a718d5ff2c725816e0fc.tar.bz2 go-tangerine-c7bc684909ab3d135d25a718d5ff2c725816e0fc.tar.lz go-tangerine-c7bc684909ab3d135d25a718d5ff2c725816e0fc.tar.xz go-tangerine-c7bc684909ab3d135d25a718d5ff2c725816e0fc.tar.zst go-tangerine-c7bc684909ab3d135d25a718d5ff2c725816e0fc.zip |
Moved peer helper metheds
Diffstat (limited to 'eth')
-rw-r--r-- | eth/backend.go | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/eth/backend.go b/eth/backend.go index 3ec36d3fc..1d991b9ef 100644 --- a/eth/backend.go +++ b/eth/backend.go @@ -1,7 +1,6 @@ package eth import ( - "encoding/json" "net" "sync" @@ -214,22 +213,6 @@ func (s *Ethereum) WaitForShutdown() { <-s.shutdownChan } -func WritePeers(path string, addresses []string) { - if len(addresses) > 0 { - data, _ := json.MarshalIndent(addresses, "", " ") - ethutil.WriteFile(path, data) - } -} - -func ReadPeers(path string) (ips []string, err error) { - var data string - data, err = ethutil.ReadAllFile(path) - if err != nil { - json.Unmarshal([]byte(data), &ips) - } - return -} - // now tx broadcasting is taken out of txPool // handled here via subscription, efficiency? func (self *Ethereum) txBroadcastLoop() { |