aboutsummaryrefslogtreecommitdiffstats
path: root/dex/downloader/downloader.go
Commit message (Collapse)AuthorAgeFilesLines
* dex/downloader: fix find common ancestor (#376)Sonic2019-04-201-2/+2
|
* backport from v1.8.23 (#304)Sonic2019-04-091-43/+135
| | | | | | | | | | | | | | | | | | * dex: backport f6193ad * dex/downloader: backport accc0fa accc0fab 174083c3 * dex: backport 434dd5b * dex: backport 42a914a 0983d02 * dex: backport 48b70ec 31b3334 and some modification * dex/downloader: backport 5f251a6 * dex/downloader: backport 81c3dc7 * dex, dex/downloader: fix typos
* dex, dex/downloader: remove some TODO comments (#232)Sonic2019-04-091-1/+0
|
* core: vm: flatten governanceWei-Ning Huang2019-04-091-11/+0
|
* core, dex/downloader: polish headers verification and blocks insertion logic ↵Sonic2019-04-091-2/+4
| | | | | | | | (#168) Refactor GenerateDexonChain function, move governance tx logic to the user of GenerateDexonChain (testchain_test.go) and move fake node set code to FakeDexcon.
* dex/downloader: fix bug when syncing (#106)Sonic2019-04-091-2/+13
| | | | | Since blocks will interleave around round change, we will probably need to verify blocks at previous round.
* dex: replace total difficulty with block number (#73)Sonic2019-04-091-18/+14
| | | | | | | In dexon, we don't "mine" and the blockchain won't and shouldn't fork, so there is no difficulty concept, just replace it with block number. Note: this commit only replace total difficulty related logic and code in dex, dex/downloader package.
* Fix lintWei-Ning Huang2019-04-091-4/+4
|
* core, dex, dex/downloader: restore insertChain to upstream versionSonic2019-04-091-6/+6
| | | | | Also rename InsertChain2, insertChain2, InsertHeaderChain2, ValidateHeaderChain2
* dex: implement downloader for dexSonic2019-04-091-41/+158
| | | | | | | | | | | We need governance state to verify block's signature (randomness), but in ethereum fast sync mode, eth downloader only downloads the whole state of pivot block, so we don't have governance state to verify the downloaded block that is before pivot block if we don't processing transaction. To avoid running transactions, dex downloader also downloads the governance state (merkle proof and storage) at snapshot height of each round, so that we can verify blocks in fast sync mode.
* dex: copy fetcher and downloader from ethSonic2019-04-091-0/+1684