aboutsummaryrefslogtreecommitdiffstats
path: root/dex/blockproposer.go
Commit message (Collapse)AuthorAgeFilesLines
* dex: remove time alignment when force sync (#349)Jimmy Hu2019-06-151-16/+1
| | | | | | * vendor: sync to latest core * dex: remove time alignment when force sync
* vendor: sync to latest coreWei-Ning Huang2019-06-151-3/+4
|
* dex: get synced consensus before sleep (#331)Jimmy Hu2019-06-151-3/+5
|
* vendor: sync to latest core (#320)Jimmy Hu2019-06-151-6/+6
| | | | | | | | * vendor: sync to latest core * dex, core: fix conflict x
* dex: fix a panic (#317)Jimmy Hu2019-06-151-1/+1
|
* dex: fix deadlock (#299)Sonic2019-06-131-1/+1
|
* dex: fix fast sync in BP mode (#291)Wei-Ning Huang2019-06-131-9/+8
| | | | Start blockproposer only after fast sync is completed (received ChainHead event), so watchcat is not falsely triggered.
* dex: recieve bp msg when recovery, use atomic to protect the flag (#286)Sonic2019-06-131-6/+4
|
* dex: ignore acceptableDist when force synchronise (#285)Sonic2019-06-131-0/+12
|
* dex: fix start bp node with empty datadir (#278)Sonic2019-06-131-5/+8
| | | also modify some debug log
* dex: do not start watchcat when blockchain is empty (#273)Wei-Ning Huang2019-06-121-4/+8
|
* dex: align recovery dMoment when resuming consensus (#271)Wei-Ning Huang2019-06-121-1/+16
| | | | | | In theory BA should tolerant inconsistant start time between every node. Since the vote cache is limited, we can not keep all the votes and pass them around all nodes. To fix this, we align the next recovery dmoment so nodes start at the same time.
* p2p, dex: add debug log (#269)Sonic2019-06-121-0/+4
|
* dex: properly shutdown protocol stack (#267)Wei-Ning Huang2019-06-121-1/+2
|
* dex: implement recovery mechanism (#258)Wei-Ning Huang2019-06-121-4/+26
| | | | | | | | | * dex: implement recovery mechanism The DEXON recovery protocol allows us to use the Ethereum blockchain as a fallback consensus chain to coordinate recovery. * fix
* dex: rename IsLatticeSyncing to IsCoreSyncing (#238)Wei-Ning Huang2019-06-121-1/+1
|
* params: add Yilan network (#207)Mission Liao2019-06-121-1/+0
| | | | | | * Add Yilan network * Fixup: remove dummy log
* core, dex, internal: block proposer syncing (first iteration) (#96)Sonic2019-06-121-0/+201
* dex, internal: block proposer syncing (first iteration) * core: find block from db if not in memory This fix handles stopping proposing and then restarting * core: no need to reorg when reset Dexon will not fork. This commit also fix when a block confirm but its parent is not in db yet, during restarting proposing. * dex: always accept NewBlockMsg, NewBlockHashesMsg We need to accept NewBlockMsg, NewBlockHashesMsg to sync current block with other peers in block proposer mode when syncing lattice data. It's a waste when the node is synced and start proposing. Todo: control msg processing on/off more granular, accept NewBlockMsg, NewBlockHashesMsg when syncing, but stop when synced.