aboutsummaryrefslogtreecommitdiffstats
path: root/dex/handler.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-11-03 22:56:32 +0800
committerWei-Ning Huang <w@dexon.org>2018-12-19 20:54:27 +0800
commit5c9acfe40d025853ffba71e698388af6a9d75632 (patch)
treeb20a0e38ec5850982ddce19ef0136a8dfd8464a3 /dex/handler.go
parent9993dec5084681850a898dd1fa9bb9875cec4979 (diff)
downloaddexon-5c9acfe40d025853ffba71e698388af6a9d75632.tar
dexon-5c9acfe40d025853ffba71e698388af6a9d75632.tar.gz
dexon-5c9acfe40d025853ffba71e698388af6a9d75632.tar.bz2
dexon-5c9acfe40d025853ffba71e698388af6a9d75632.tar.lz
dexon-5c9acfe40d025853ffba71e698388af6a9d75632.tar.xz
dexon-5c9acfe40d025853ffba71e698388af6a9d75632.tar.zst
dexon-5c9acfe40d025853ffba71e698388af6a9d75632.zip
test: disable standalone RPC server as BroadcastBlock currently cause forking
Diffstat (limited to 'dex/handler.go')
-rw-r--r--dex/handler.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/dex/handler.go b/dex/handler.go
index 00d2fb78c..68c682eda 100644
--- a/dex/handler.go
+++ b/dex/handler.go
@@ -1046,9 +1046,7 @@ func (pm *ProtocolManager) peerSetLoop() {
for {
select {
- case event := <-pm.chainHeadCh:
- pm.BroadcastBlock(event.Block, true)
-
+ case <-pm.chainHeadCh:
newRound := pm.gov.LenCRS() - 1
log.Trace("new round", "round", newRound)
if newRound == round {