aboutsummaryrefslogtreecommitdiffstats
path: root/dex/governance.go
Commit message (Collapse)AuthorAgeFilesLines
* core: vm: refactor file structurejm2019-02-191-1/+1
| | | | | For support other vm types, this pr modified the core/vm file structures.
* consensus: dexcon: snapshot round height when finalizing block (#170)Wei-Ning Huang2019-01-241-14/+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 ↵Sonic2019-01-241-84/+10
| | | | | | | logic (#168) Refactor GenerateDexonChain function, move governance tx logic to the user of GenerateDexonChain (testchain_test.go) and move fake node set code to FakeDexcon.
* Revert "core: vm: refactor file structure (#151)"Wei-Ning Huang2019-01-171-1/+1
| | | | This reverts commit 020c8a477578cef3764b54f33d9ca0cf6caf7631.
* core: vm: refactor file structure (#151)JM2019-01-151-1/+1
| | | | For support other vm types, this pr modified the core/vm file structures.
* consensus: implement DEXON cryptoeconomics v4.0 (#145)Wei-Ning Huang2019-01-141-2/+2
|
* core: vm: implement byzantine reporting mechanism (#128)Wei-Ning Huang2019-01-141-8/+58
|
* vendor: sync to latest core and fix conflictJimmy Hu2019-01-141-0/+9
|
* core: vm: Add `MPKReady` to governance (#97)Jimmy Hu2018-12-211-0/+40
| | | | | | * core/vm: Add DKGMPKReady * param: update GenesisHash * vendor: sync to latest core
* core, dex, downloader: refactor governanceSonic2018-12-191-102/+10
|
* dex: implement downloader for dexSonic2018-12-191-2/+2
| | | | | | | | | | | 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.
* governance: implement delegate/undelegate function and add tests (#33)Wei-Ning Huang2018-12-191-3/+3
| | | | | Implement delegate/undelegate function to allow others to delegate it's fund to stake on a node. Also added governance contract tests.
* core: more fix on light node synchronization (#32)Wei-Ning Huang2018-12-191-6/+5
| | | | | | Fix gas calculation in governance contract. Correctly register round height when processing pending blocks. We should register the mapping when we get the pending block instead of waiting for block confirmation.
* core: validate DKG set with correct nodeset in round-2 (#19)Wei-Ning Huang2018-12-191-4/+2
| | | | | * vendor: sync consensus core * core: validate DKG set with correct nodeset in round-2
* dex: fix conflict caused by rebaseWei-Ning Huang2018-12-191-4/+3
|
* dex: increase governance tx gas priceWei-Ning Huang2018-12-191-0/+4
|
* core: validate roundHeight mapping in governance contractWei-Ning Huang2018-12-191-0/+7
|
* core: vm: governance: remove maxIntervalWei-Ning Huang2018-12-191-1/+0
|
* Rename import due to dexon-consensus renameWei-Ning Huang2018-12-191-6/+6
|
* dex: add block gas limit into governanceWei-Ning Huang2018-12-191-6/+0
|
* vendor: sync consensus core and fix conflictWei-Ning Huang2018-12-191-9/+10
|
* dex: fix DKG round switchingWei-Ning Huang2018-12-191-3/+3
|
* dex: misc fixesWei-Ning Huang2018-12-191-8/+15
|
* dex: use RLP to encode contract payload dataWei-Ning Huang2018-12-191-6/+6
|
* dex: fix DKGMasterPublicKey and DKGComplaints unmarshalWei-Ning Huang2018-12-191-3/+2
|
* consensus: dexcon: fetch config from stateWei-Ning Huang2018-12-191-1/+7
|
* dex: fix public key parsing due to changes in consensus coreWei-Ning Huang2018-12-191-12/+8
|
* core/dex: fix governance contract implementationWei-Ning Huang2018-12-191-8/+8
|
* dex/core: misc bug fixesWei-Ning Huang2018-12-191-0/+4
|
* dex: implement peerSetLoopSonic2018-12-191-0/+5
|
* dex: gov: using dex-consensus-core NodeSetCacheSonic2018-12-191-49/+34
|
* dex: add method to get NumChains, NotarySet, DKGSet easilySonic2018-12-191-12/+56
|
* dex: network: implement the network interfaceSonic2018-12-191-0/+20
|
* dex: bug fix to allow running geth without crashingWei-Ning Huang2018-12-191-41/+41
|
* dex: implement sendTx related governance methodsWei-Ning Huang2018-12-191-5/+127
|
* dex: pass p2p nodeKey to Dexon instanceWei-Ning Huang2018-12-191-5/+12
|
* dex: implement some governance interface functionsWei-Ning Huang2018-12-191-19/+95
|
* dex: governance: implement governance interfaceWei-Ning Huang2018-12-191-2/+13
|
* core: vm: refactor and add DKGFinalizeds related implementationsWei-Ning Huang2018-12-191-2/+11
|
* core: vm: implement the rest of governance contract methodsWei-Ning Huang2018-12-191-1/+1
|
* core: vm: add governance contract skeletonWei-Ning Huang2018-12-191-7/+7
|
* dex: update consensus core interfaceWei-Ning Huang2018-12-191-7/+17
|
* Use dex.Config instead of eth.ConfigWei-Ning Huang2018-12-191-1/+2
|
* dex: make geth buildable and update interface skeletonWei-Ning Huang2018-12-191-2/+12
|
* Add udpated governance interface and app interfaceWei-Ning Huang2018-12-191-0/+32