aboutsummaryrefslogtreecommitdiffstats
path: root/dex/downloader/testchain_test.go
Commit message (Collapse)AuthorAgeFilesLines
* dexcon: correctly fine DKGSet for not producing blocks (#325)Wei-Ning Huang2019-04-091-1/+1
|
* core/vm: remove round from addDKG functions (#279)Jimmy Hu2019-04-091-3/+3
| | | | | | | | * vendor: sync to latest core * core/vm: remove addDKG functions * core: fix conflict
* consensus: dexcon: disqualify dead node (#280)Wei-Ning Huang2019-04-091-0/+4
| | | | | | | | | | Since a qualified node might fail stopped, we need to remove them from qualified nodes to maintain network integrity. We do this by inspect the previous round to see if there are dead nodes. A dead node is a notary set node that does not propose any block in the previous round. We disqualify them by fining them so their staked value is 1 wei below minStake. This make them unqualified for being notary set in the follow on rounds.
* core: vm: flatten governanceWei-Ning Huang2019-04-091-50/+26
|
* consensus: dexcon: snapshot round height when finalizing block (#170)Wei-Ning Huang2019-04-091-9/+0
| | | | Instead of having BP to send a tx to register the round height, just modify the state when finalizing block.
* core, dex/downloader: polish headers verification and blocks insertion logic ↵Sonic2019-04-091-29/+146
| | | | | | | | (#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-12/+0
| | | | | | | 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-18/+69
|
* dex: copy fetcher and downloader from ethSonic2019-04-091-0/+221