simplifying the variables

pull/203/head
ak 6 years ago
parent 411328709b
commit b007e648dc
  1. 7
      internal/beaconchain/libs/beaconchain_test.go

@ -11,10 +11,9 @@ import (
)
var (
leader1 = &bcconn.NodeInfo{Self: p2p.Peer{IP: "127.0.0.1", Port: "1"}}
leader2 = &bcconn.NodeInfo{Self: p2p.Peer{IP: "127.0.0.1", Port: "2"}}
leaders = []*bcconn.NodeInfo{&bcconn.NodeInfo{Self: p2p.Peer{IP: "127.0.0.1", Port: "1"}},
&bcconn.NodeInfo{Self: p2p.Peer{IP: "127.0.0.1", Port: "2"}}}
leader1 = &bcconn.NodeInfo{Self: p2p.Peer{IP: "127.0.0.1", Port: "1"}}
leader2 = &bcconn.NodeInfo{Self: p2p.Peer{IP: "127.0.0.1", Port: "2"}}
leaders = []*bcconn.NodeInfo{leader1, leader2}
shardLeaderMap = map[int]*bcconn.NodeInfo{
0: leader1,
1: leader2,

Loading…
Cancel
Save