aboutsummaryrefslogtreecommitdiffstats
path: root/dex/handler_test.go
diff options
context:
space:
mode:
authorSonic <sonic@dexon.org>2018-12-05 15:17:38 +0800
committerWei-Ning Huang <w@dexon.org>2018-12-19 20:54:27 +0800
commit5e11c9fb4edda091ce93bf23d9108d8f670f55fc (patch)
tree3ee81ec716d2a9a2efe031d94d955a7b38dbbf0b /dex/handler_test.go
parent861110ade27c4fa06703f2ac0990b3e688ac4277 (diff)
downloaddexon-5e11c9fb4edda091ce93bf23d9108d8f670f55fc.tar
dexon-5e11c9fb4edda091ce93bf23d9108d8f670f55fc.tar.gz
dexon-5e11c9fb4edda091ce93bf23d9108d8f670f55fc.tar.bz2
dexon-5e11c9fb4edda091ce93bf23d9108d8f670f55fc.tar.lz
dexon-5e11c9fb4edda091ce93bf23d9108d8f670f55fc.tar.xz
dexon-5e11c9fb4edda091ce93bf23d9108d8f670f55fc.tar.zst
dexon-5e11c9fb4edda091ce93bf23d9108d8f670f55fc.zip
core, dex: polish sync (#75)
- Broadcasting blocks at chain head event is not correct when the full node is not running in block proposer mode. Introduce NewFinalizedBlockEvent, this event is post by the full node which runs in block proposer mode when a block is witnessed and resulting in some blocks are considered finalized. - Non block proposer node will still broadcast blocks at the following moment (same as ethereum): 1. a sync with a peer is terminated successfully 2. a block passes the fetcher's header check during inserting blocks 3. a block is successfully inserted by fetcher - Don't trigger a sync when we are not behind other peers more than acceptable distance. Fetcher is able to cover this.
Diffstat (limited to 'dex/handler_test.go')
0 files changed, 0 insertions, 0 deletions