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-03-12 12:19:09 +0800
commite552233512e0ccb1e296144d5446e2bb5b31212c (patch)
tree73eee066df01e0f2cfe406174d7620147873b7d1 /dex/handler.go
parent5454042ddf8b3a0b95292fa04479b919d845896b (diff)
downloaddexon-e552233512e0ccb1e296144d5446e2bb5b31212c.tar.gz
dexon-e552233512e0ccb1e296144d5446e2bb5b31212c.tar.zst
dexon-e552233512e0ccb1e296144d5446e2bb5b31212c.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 {