aboutsummaryrefslogtreecommitdiffstats
path: root/dex/handler.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-11-03 15:28:45 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 21:32:52 +0800
commite7f80a566b38c906b0a6fb5e8d60d0e68e3a510e (patch)
treefaa67b9219e93810cb4edb686c074ef2263b604b /dex/handler.go
parent1b8ce702f45aa122ea0d89655c5fdef5e6ddb37e (diff)
downloaddexon-e7f80a566b38c906b0a6fb5e8d60d0e68e3a510e.tar.gz
dexon-e7f80a566b38c906b0a6fb5e8d60d0e68e3a510e.tar.zst
dexon-e7f80a566b38c906b0a6fb5e8d60d0e68e3a510e.zip
test: start a separate RPC node for testing block sync
Diffstat (limited to 'dex/handler.go')
-rw-r--r--dex/handler.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/dex/handler.go b/dex/handler.go
index 68c682eda..00d2fb78c 100644
--- a/dex/handler.go
+++ b/dex/handler.go
@@ -1046,7 +1046,9 @@ func (pm *ProtocolManager) peerSetLoop() {
for {
select {
- case <-pm.chainHeadCh:
+ case event := <-pm.chainHeadCh:
+ pm.BroadcastBlock(event.Block, true)
+
newRound := pm.gov.LenCRS() - 1
log.Trace("new round", "round", newRound)
if newRound == round {