diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-11-03 15:28:45 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2018-12-19 20:54:27 +0800 |
commit | 9993dec5084681850a898dd1fa9bb9875cec4979 (patch) | |
tree | 68471ef275ba0b70489c0900a945010e7af85f57 /dex/handler.go | |
parent | c8a19065586e26ec99e2a00de8f76aea722b757d (diff) | |
download | dexon-9993dec5084681850a898dd1fa9bb9875cec4979.tar dexon-9993dec5084681850a898dd1fa9bb9875cec4979.tar.gz dexon-9993dec5084681850a898dd1fa9bb9875cec4979.tar.bz2 dexon-9993dec5084681850a898dd1fa9bb9875cec4979.tar.lz dexon-9993dec5084681850a898dd1fa9bb9875cec4979.tar.xz dexon-9993dec5084681850a898dd1fa9bb9875cec4979.tar.zst dexon-9993dec5084681850a898dd1fa9bb9875cec4979.zip |
test: start a separate RPC node for testing block sync
Diffstat (limited to 'dex/handler.go')
-rw-r--r-- | dex/handler.go | 4 |
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 { |