aboutsummaryrefslogtreecommitdiffstats
path: root/dex/downloader/downloader_test.go
Commit message (Collapse)AuthorAgeFilesLines
* backport from v1.8.23 (#304)Sonic2019-04-091-6/+97
| | | | | | | | | | | | | | | | | | * 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: Add a flag to GetBlockHeadersMsg and GetBlockBodiesMsg (#188)Sonic2019-04-091-4/+4
| | | | | | | | | * dex: Add a flag to GetBlockHeadersMsg and GetBlockBodiesMsg So that we can dispatch the response msg to fetcher or downloader easily. * fixup! dex: Add a flag to GetBlockHeadersMsg and GetBlockBodiesMsg
* core, dex/downloader: polish headers verification and blocks insertion logic ↵Sonic2019-04-091-1/+67
| | | | | | | | (#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: replace total difficulty with block number (#73)Sonic2019-04-091-54/+51
| | | | | | | 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.
* dex/downloader: fix testsSonic2019-04-091-224/+45
|
* dex: copy fetcher and downloader from ethSonic2019-04-091-0/+1481