good morning!!!!

Skip to content
Snippets Groups Projects
Commit 18724183 authored by Viktor Trón's avatar Viktor Trón
Browse files

eth: remove disused peer_util.go

parent 3ea99f98
No related branches found
No related tags found
No related merge requests found
package eth
import (
"encoding/json"
"github.com/ethereum/go-ethereum/common"
)
func WritePeers(path string, addresses []string) {
if len(addresses) > 0 {
data, _ := json.MarshalIndent(addresses, "", " ")
common.WriteFile(path, data)
}
}
func ReadPeers(path string) (ips []string, err error) {
var data string
data, err = common.ReadAllFile(path)
if err != nil {
json.Unmarshal([]byte(data), &ips)
}
return
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment