aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSonic <sonic@dexon.org>2019-03-26 10:14:55 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-06-13 18:11:44 +0800
commite9247b6b1eb13e77b248f9d8841eb06f50cf1297 (patch)
tree9212898873b1b87707213643e9b1f6c0fa6ee4ae
parent81785c005e3ccea35570a5f525fe9f4c17949e6c (diff)
downloadgo-tangerine-e9247b6b1eb13e77b248f9d8841eb06f50cf1297.tar
go-tangerine-e9247b6b1eb13e77b248f9d8841eb06f50cf1297.tar.gz
go-tangerine-e9247b6b1eb13e77b248f9d8841eb06f50cf1297.tar.bz2
go-tangerine-e9247b6b1eb13e77b248f9d8841eb06f50cf1297.tar.lz
go-tangerine-e9247b6b1eb13e77b248f9d8841eb06f50cf1297.tar.xz
go-tangerine-e9247b6b1eb13e77b248f9d8841eb06f50cf1297.tar.zst
go-tangerine-e9247b6b1eb13e77b248f9d8841eb06f50cf1297.zip
dex: fix deadlock (#299)
-rw-r--r--dex/blockproposer.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/dex/blockproposer.go b/dex/blockproposer.go
index dc2b22e16..65f9f9e30 100644
--- a/dex/blockproposer.go
+++ b/dex/blockproposer.go
@@ -227,7 +227,7 @@ ListenLoop:
log.Debug("no new chain head for a while")
if p := b.dex.protocolManager.peers.BestPeer(); p != nil {
log.Debug("try force sync with peer", "id", p.id)
- b.dex.protocolManager.synchronise(p, true)
+ go b.dex.protocolManager.synchronise(p, true)
} else {
log.Debug("no peer to sync")
}