aboutsummaryrefslogtreecommitdiffstats
path: root/ethereum.go
diff options
context:
space:
mode:
authorJarrad Hope <me@jarradhope.com>2014-03-07 18:11:11 +0800
committerJarrad Hope <me@jarradhope.com>2014-03-07 18:11:11 +0800
commit694ef4704176c4c2329b56e4cd5320f558513efb (patch)
tree5c0b89d659100dfadf0d58abaf6f483e883dce20 /ethereum.go
parent9d887234eafb5884df9b2a90e3cb876688af0c21 (diff)
downloaddexon-694ef4704176c4c2329b56e4cd5320f558513efb.tar
dexon-694ef4704176c4c2329b56e4cd5320f558513efb.tar.gz
dexon-694ef4704176c4c2329b56e4cd5320f558513efb.tar.bz2
dexon-694ef4704176c4c2329b56e4cd5320f558513efb.tar.lz
dexon-694ef4704176c4c2329b56e4cd5320f558513efb.tar.xz
dexon-694ef4704176c4c2329b56e4cd5320f558513efb.tar.zst
dexon-694ef4704176c4c2329b56e4cd5320f558513efb.zip
gofmt -w ethereum.go
Diffstat (limited to 'ethereum.go')
-rw-r--r--ethereum.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/ethereum.go b/ethereum.go
index 795f2cd52..fb97c34b1 100644
--- a/ethereum.go
+++ b/ethereum.go
@@ -264,8 +264,8 @@ func (s *Ethereum) Start() {
if ethutil.Config.Seed {
ethutil.Config.Log.Debugln("Seeding")
// DNS Bootstrapping
- _, nodes, err := net.LookupSRV("eth", "tcp", "ethereum.org")
- if(err == nil) {
+ _, nodes, err := net.LookupSRV("eth", "tcp", "ethereum.org")
+ if err == nil {
peers := []string{}
// Iterate SRV nodes
for _, n := range nodes {
@@ -273,7 +273,7 @@ func (s *Ethereum) Start() {
port := strconv.Itoa(int(n.Port))
// Resolve target to ip (Go returns list, so may resolve to multiple ips?)
addr, err := net.LookupHost(target)
- if(err == nil) {
+ if err == nil {
for _, a := range addr {
// Build string out of SRV port and Resolved IP
peer := net.JoinHostPort(a, port)