aboutsummaryrefslogtreecommitdiffstats
path: root/dex/peer.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2019-03-11 12:14:27 +0800
committerWei-Ning Huang <w@dexon.org>2019-03-12 12:19:09 +0800
commit17a969ad66402ed9af16c166fbc7a8080274e44b (patch)
tree5d0c0fc5d09799862572fb362223af80edecd5e0 /dex/peer.go
parentbc5c31fdd6869f277cca69d873befef76e4cb354 (diff)
downloaddexon-17a969ad66402ed9af16c166fbc7a8080274e44b.tar
dexon-17a969ad66402ed9af16c166fbc7a8080274e44b.tar.gz
dexon-17a969ad66402ed9af16c166fbc7a8080274e44b.tar.bz2
dexon-17a969ad66402ed9af16c166fbc7a8080274e44b.tar.lz
dexon-17a969ad66402ed9af16c166fbc7a8080274e44b.tar.xz
dexon-17a969ad66402ed9af16c166fbc7a8080274e44b.tar.zst
dexon-17a969ad66402ed9af16c166fbc7a8080274e44b.zip
dex: fetcher: modify parameters to speedup syncing (#239)
Diffstat (limited to 'dex/peer.go')
-rw-r--r--dex/peer.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/dex/peer.go b/dex/peer.go
index 8ade9f152..64798aaaf 100644
--- a/dex/peer.go
+++ b/dex/peer.go
@@ -944,6 +944,8 @@ func (ps *peerSet) BuildConnection(round uint64) {
ps.lock.Lock()
defer ps.lock.Unlock()
+ log.Info("Build connection", "round", round)
+
dkgLabel := peerLabel{set: dkgset, round: round}
if _, ok := ps.label2Nodes[dkgLabel]; !ok {
dkgPKs, err := ps.gov.DKGSet(round)
@@ -965,8 +967,7 @@ func (ps *peerSet) BuildConnection(round uint64) {
if _, ok := ps.label2Nodes[notaryLabel]; !ok {
notaryPKs, err := ps.gov.NotarySet(round)
if err != nil {
- log.Error("get notary set fail",
- "round", round, "err", err)
+ log.Error("get notary set fail", "round", round, "err", err)
return
}