aboutsummaryrefslogtreecommitdiffstats
path: root/dex/api.go
Commit message (Collapse)AuthorAgeFilesLines
* dex: properly start and stop the block proposer module (#264)Wei-Ning Huang2019-04-091-8/+0
| | | | Stop blockproposer in the Stop() method of node service so the process doens't hang.
* dex: rename IsLatticeSyncing to IsCoreSyncing (#238)Wei-Ning Huang2019-04-091-2/+2
|
* core, dex, internal: block proposer syncing (first iteration) (#96)Sonic2019-04-091-0/+16
| | | | | | | | | | | | | | | | | | | | | | * 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.
* dex: register ethereum APIsWei-Ning Huang2019-04-091-0/+345